WSOD for admin when using PHP 7

After a lot of testing and considerable frustration, I discovered the problem. I am including this solution in the hope that it saves someone else a lot of frustration if they encounter a similar problem. The problem to be the presence of a PHP closing tag ‘?> ‘ in the functions.php file of the child-theme. … Read more

Can I limit this meta box to a particular page?

Inside your add_meta_boxex hook callback function, you will have an add_meta_box() call. Wrap that call in a conditional, using data from the $post global (I’m fairly certain it is available in edit.php). For example, you could use either the Page ID or slug. Page ID: global $post; if ( ‘123’ == $post->ID ) { // … Read more

Hooking into add_submenu_page

Hook into admin_head, the last action before the menu is rendered, and change the global $menu: add_action( ‘admin_head’, ‘wpse_71303_change_menu_cap’ ); /** * Change the capability to access an admin menu item. * * @wp-hook admin_head * @return void */ function wpse_71303_change_menu_cap() { global $menu; foreach ( $menu as $key => $item ) { // Find … Read more

How do I create a section in the dashboard w/ an input field

This is pretty easy to do with the Dashboard Widgets API http://codex.wordpress.org/Dashboard_Widgets_API. Here are the steps I would take to create this: Queue up a jQuery script for AJAX handling Create a PHP AJAX function and corresponding AJAX hook for saving the form data Create the dashboard widget with HTML form input(s) Here’s a sample … Read more

How can I hide certain submenus of the Settings tab in the dashboard?

If you would like to code it yourself, here is a good tutorial for customizing the Admin Menu. http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/ Copying from the tutorial, they remove the Editor sublink: function remove_editor_menu() { remove_action(‘admin_menu’, ‘_add_themes_utility_last’, 101); } add_action(‘_admin_menu’, ‘remove_editor_menu’, 1); note: you need to know the function / action that displays it

WordPress dashboard is slooow. Front end is fast

Try this link: WordPress Support It suggests these 7 steps about half way down: Manually run /wp-admin/upgrade.php (visit it in your browser). Try decativating all plugins. If that resolves the issue, reactivate each one individually until you find the cause. Try switching to the Twenty Ten theme to rule-out a theme-specific issue. Download WordPress again … Read more