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

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 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.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x