I am using this set of functions in child theme to remove unneeded footer info:

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

It all worked well while in theme sixteen. Now, in child theme, those filters are not working.

How to solve this issue, as this is not only filter I am using.

  • This kind of backend modification sounds better served in a plugin than depending on the theme. – birgire Jun 15 '16 at 17:06
  • I do have that backend UI theme modification. I am going to try it. Thanks. – EnterSB Jun 15 '16 at 19:54
  • @birgire, it is working. How to grant correct answer to you? One more thing, just because of this, I do not need child theme. And that is great for now. – EnterSB Jun 15 '16 at 20:12

As suggested in the comments, these kind of modifications would be better served with a custom plugin, as they are not theme dependent. Here's an example:

 * Plugin Name: Remove Footer Text
 * Description: Remove admin footer text and update footer text through filters.
 * Version:     0.0.1
 * Author:      Name
 * Author URI:  http://example.tld

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

Setup: Create the /wp-content/plugins/wpse-remove-footer-text/plugin.php and activate the plugin from the backend as usual.

If other plugins or the themes are adjusting the footer text, then we might need to increase the priority value.

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.