This post is a part 8 of Creating a WordPress Admin Theme post series.
Below the admin screen you will see a left footer with text “Thank you for creating with WordPress.” and right footer with text representing version number.
WordPress provides us a way to change that programatically.
You can add these lines of code in the theme or plugin file. You can embed html code in the footer text also.
<?php
//fired before left side footer text is echoed.
add_filter('admin_footer_text', 'my_footer_text');
//fired before right side footer text is echoed. Third parameter is just a indication of a version number, its values doesn't make any other sense.
add_filter('update_footer', 'my_footer_version', 11);
//$default represents the existing text in the left side
function my_footer_text($default) {
//return the new footer text
return 'QNimate Website';
}
//$default represents the exisiting text in the right side
function my_footer_version($default) {
//return the new footer text
return 'QNimate Initial Release';
}
//fired before left side footer text is echoed.
add_filter('admin_footer_text', 'my_footer_text');
//fired before right side footer text is echoed. Third parameter is just a indication of a version number, its values doesn't make any other sense.
add_filter('update_footer', 'my_footer_version', 11);
//$default represents the existing text in the left side
function my_footer_text($default) {
//return the new footer text
return 'QNimate Website';
}
//$default represents the exisiting text in the right side
function my_footer_version($default) {
//return the new footer text
return 'QNimate Initial Release';
}
If you are too lazy to write your own code then you can use Admin Footer Text plugin.
Leave a Reply