How to remove version and thank you message from the admin footer

I’ve used following codes and no luck

1

//Hide admin footer from admin
function change_footer_admin () {
    return ' ';
}
add_filter('admin_footer_text', 'change_footer_admin', 9999);

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

2

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

3

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

Still I see those texts and version on my footer.
have a look at the screen shot

So what is the accurate way to remove these?
I’ve added these code snippets into my child theme function.php

1
1

This works for me:

<?php
/** Plugin Name: Admin Footer Text Remover **/

add_filter( 'admin_footer_text', '__return_empty_string', 11 );
add_filter( 'update_footer',     '__return_empty_string', 11 );

where I use the __return_empty_string function as a callback.

Leave a Comment