WordPress website giving 404

Please try this .htaccess. <IfModule mod_rewrite.c> RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L]

wp_schedule_event function reference

I think if you need to call page every hour you can do it with a simple cron (not wp_cron) and set it in your panel or via shell a string like this: */1 * * * wget -O – /path/to/link >/dev/null 2>&1 But if you need to do it via wp add_action(‘wp’, ‘set_cron’ ); … Read more

how change my menu on submenu

You can add a sub menu like below. // Call Terms_and_conditions_menu is function which load plugin menu add_action( ‘admin_menu’, ‘Terms_and_conditions_menu’ ); // Add to WordPress admin menu if( !function_exists(“Terms_and_conditions_menu”) ) { function Terms_and_conditions_menu(){ $page_title=”WordPress Extra Post Info”; $menu_title=”Terms And Conditions”; $capability = ‘manage_options’; $menu_slug = ‘terms-post-info’; $function = ‘terms_post_info_page’; $icon_url=”dashicons-media-code”; $position = 4; add_menu_page( $page_title, … Read more

Passing ajax variable to more than one wordpress plugin function

If you want to use a global variable, you have to set it outside any local scope, above your functions. For example: if (isset($_POST[‘whatever’])) { $variable = $_POST[‘whatever’]; } This will store it in the superglobal array. Now, access it using the $_GLOBALS array: function my_action(){ $whatever = $GLOBALS[‘variable’]; } I would however have an … Read more