Dashboard controls have all stopped working
Start de-activating all your plugins, one by one. Mostly likely there is a conflict produced by a update of a plugin or theme
Start de-activating all your plugins, one by one. Mostly likely there is a conflict produced by a update of a plugin or theme
Ok, I was doing a mistake and glad that I found it! I was using admin_menu hook when it should be admin_init. So the only change I had to make was: add_action(‘admin_init’, ‘restrict_admin_access_by_role’, 999); https://stackoverflow.com/questions/27137866/what-wordpress-hook-fires-first-admin-init-or-admin-menu Hope this would help somebody like me as well!
remove_submenu_page( ‘themes.php’, ‘ot-theme-options’ ); remove_submenu_page( ‘themes.php’, ‘ot-settings’ );
I did this on a site http://www.axjet.co/ I don’t know a plugin that will do it, this custom code added to my header. Using a simple dynamic drive script http://dynamicdrive.com/dynamicindex11/html5audioplayer.htm
Add the indicated line to your .htaccess and all should be fixed RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] **RewriteCond %{http_host} ^(www\.)?YourDomain\.com$ [nc]** RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
You just use a normal if statement around the notice so that it only appears if the value of your option matches the current date. function wpse_277689_admin_notice() { if ( get_option( ‘expiry_date’ ) === date( ‘d/m/Y’) ) : ?> <div class=”notice notice-success is-dismissible”> <p><?php _e( ‘Done!’, ‘sample-text-domain’ ); ?></p> </div> <?php endif; } add_action( ‘admin_notices’, … Read more
Why might this disable other functionality?
WordPress does not support serving a network with the core code in a subdirectory. My site works now that I moved everything back into the root directory.
Strange URLs admin area bug
Redirect with message after admin_post.php