-
-
Save tahirtaous/f7a3cb777904ba8741c2 to your computer and use it in GitHub Desktop.
// hide screen options and Help Buttons, WordPress Version and About WordPress from WordPress Dashboard
// #footer-upgrade will remove Version number from dashboard footer
// #screen-meta-links will remove Screen Options and Help Buttons from dashboard footer
// #wpadminbar #wp-admin-bar-wp-logo>.ab-item will remove About WordPress from dashboard footer
// https://wordpress.org/support/topic/remove-items-from-screen-options
// paste this code to functions.php fileadd_action( 'admin_head', 'remove_wordpress_cfields' );
function remove_wordpress_cfields() {
echo '<style>#screen-meta-links, #footer-upgrade, #wpadminbar #wp-admin-bar-wp-logo>.ab-item { display: none; }</style>';
}
Thumbs up, tahirtaous! You'll be glad to know that the above code of yours was tested working today up to the latest Wordpress version 4.9.8. Hope you can modify this code for a specific Wordpress user sometime later. Thank you! Worked like a charm on my client's website. 👍
// delete only screen options not Help button from Dashboard
// paste this code to functions.php file
function remove_screen_options(){
return false;
}
add_filter(screen_options_show_screen, remove_screen_options);