Post Pic

WordPress tip : How to change the dashboard footer text

When building a site for a client, it can be useful to be able to modify the dashboard footer text. This recipe is going to show you how you can easily do it using a hook.

Paste the following on your functions.php, save the file, and you're done. Couldn't been easier ;)

function remove_footer_admin () {
    echo "Your own text";
} 

add_filter('admin_footer_text', 'remove_footer_admin');

22 Responses

Jan 11 2010 17:01

Cool and Easy, but the function name seems kind a strange :) Maybe “custom_footer_text” would be the right name :)

Jan 11 2010 17:43

Thanks for this tweak bro.

Jan 11 2010 18:44

Very usefull for those of us who build wordpress based websites for customers. thanks a lot for sharing!

Jan 11 2010 19:13

Note that returning the custom text would a cleaner way to do it as the value could be filtered multiple times.

function remove_footer_admin ($text) {
$ex = explode(‘|’, $text);
return $ex[0].’ | No more additional links.’;
}

add_filter(‘admin_footer_text’, ‘remove_footer_admin’);

Jan 11 2010 19:39

That’s fantastic!

Jan 11 2010 20:26

Getting an error at add_filter…?

Jan 11 2010 20:28

Nevermind, I was using the file in includes folder! It needs to be the theme’s one ;)

Jan 11 2010 21:14

Even easier is footer.php (in your theme) edit and make changes as we want

Jan 12 2010 00:58

Very nice tip. And very useful for me since i am building my own theme at the moment :)

Thank you for sharing!

Jan 12 2010 03:54

Again, thanks. You can really customize the Wordpress dashboard, especially if one were to go through the posts you’ve made. It would be nice if all these little hacks could be put into a plugin… maybe “WP-Custom Dashboard” that would be cool :)

Jan 12 2010 05:10

Cool tip! Now I just need to find an actual use for this :P

Jan 12 2010 05:20

it works for me..! thanks!

Jan 12 2010 14:57

Nice and easy and very useful.
Thanks!

Jan 13 2010 11:13

shorter:
add_filter(‘admin_footer_text’,create_function(‘$a’,”return ‘Your own text’;”));

Jan 14 2010 14:37

Nice tweak !

Jan 18 2010 22:49

Made the trick!

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required