WordPress check email exists

function EmailExist($email,$id=0) { global $wpdb; if($wpdb->get_row("SELECT user_email FROM ".$wpdb->prefix."users WHERE user_email = '"       [...]

redirect subdomains wordpress author pages

Eg: example.com/author => author.example.com In .htaccess fle add the following rewrite rules RewriteCond %{HTTP_HOST} !^www.example.com RewriteCond [...]

WordPress get results

function my_plugin_get_results () { global $wpdb; $table_name = $wpdb->prefix . "plugin_table"; $active_rows = $wpdb->get_results( "SELECT * FROM [...]

WordPress post revision off

Add the following line in wp-config.php file in wordpress to make the revision goes off. define('WP_POST_REVISIONS', [...]

WordPress Mysql query updation for server

UPDATE [your_table_name] SET [your_table_field] = REPLACE([your_table_field], '[string_to_find]' , '[string_to_be_replaced]'); e.g: UPDATE wp_posts SET guid [...]