4

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

  • Where did you try these code snippets? – birgire Aug 25 '14 at 8:40
  • into my functions.php – Riffaz Starr Aug 25 '14 at 8:45
  • and I am using a child theme. – Riffaz Starr Aug 25 '14 at 8:56
  • it's working. My file name was function.php Now I renamed it as functions.php and now its working. Thanks for your time. – Riffaz Starr Aug 25 '14 at 9:19
7

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.

  • thanks for that. But still same. Is any possible it's because of Wordpres version? I am using 3.9.2 – Riffaz Starr Aug 25 '14 at 8:48
  • and I am using a child theme. – Riffaz Starr Aug 25 '14 at 8:56
  • 1
    it's working. My file name was function.php Now I renamed it as functions.php and now its working. Thanks for your time. – Riffaz Starr Aug 25 '14 at 9:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.