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:

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?

3 s
3

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' );

Leave a Comment