how to hide top bar button on /wp-admin/edit.php

So a straight forward way to do this is to use CSS if you want to pick out a few items to not display on the admin. These items you’ve provided look like the standard menu items with a different style attached, though I can’t be sure. If not, you’ll need to provide more clearer … Read more

Modify Contextual Help

If you want to remove some or all (default) help tabs, then you could do something like this inside your function. $current_screen = get_current_screen(); $white_list = array( ‘overview-link’, // If you want to keep default some tab title and content ); if ( $current_tabs = $current_screen->get_help_tabs() ) { foreach ($current_tabs as $tab_key => $tab_config) { … Read more

Weird white space in admin area

Well that didn’t take long to figure out.. I’ve dealt with this before, but could never figure it out. Obfuscated code. Impulsively I deleted the directory, but they’ll be back. If you see these weird random PHP files, your site needs to be scrubbed and relaunched from backups. Preferably XML data files with no code. … Read more

Top admin tool bar not displaying for “Editor” user role

Looks like i found the piece of code causing the issue : function remove_admin_bar() { if (! current_user_can(‘administrator’, ‘editor’) && !is_admin() && !is_editor()) { show_admin_bar(false); } } add_action(‘after_setup_theme’, ‘remove_admin_bar’); I switched show_admin_bar(false); to show_admin_bar(true);