How To Remove WordPress Version From The Admin Footer

Is there anyway to remove version number from the right side of WordPress admin footer?

I know this code will add some text before the version number, but it will not remove it:

Read More
function change_footer_version() {
    echo 'Anything';
}
add_filter( 'update_footer', 'change_footer_version', 9999 );

And the following code will do nothing:

function change_footer_version() {
    return ' ';
}
add_filter( 'update_footer', 'change_footer_version', 9999 );

So, is there anyway to remove the entire <div> from the template or anything with functions.php file?

Related posts

3 comments

  1. Add this to your functions.php:

    function my_footer_shh() {
        remove_filter( 'update_footer', 'core_update_footer' ); 
    }
    
    add_action( 'admin_menu', 'my_footer_shh' );
    

    or, if you’d like to hide it from everyone except admins:

    function my_footer_shh() {
        if ( ! current_user_can('manage_options') ) { // 'update_core' may be more appropriate
            remove_filter( 'update_footer', 'core_update_footer' ); 
        }
    }
    add_action( 'admin_menu', 'my_footer_shh' );
    
  2. The other answer is not working for my site. I tried this script instead and it works fine for removing the WordPress version number from the right footer of admin pages:

    add_filter( 'admin_footer_text', '__return_empty_string', 11 ); 
    add_filter( 'update_footer', '__return_empty_string', 11 );
    
  3. Add this simple code into your function.php file:

    function wpbeginner_remove_version() {
    return '';
    }
    add_filter('the_generator', 'wpbeginner_remove_version');
    

Comments are closed.