只需钩入过滤器即可。剩下的只有<hr />
.
/**
* Change/Disable the footer text line
* @return void
*/
function wpse_remove_footer()
{
add_filter( \'admin_footer_text\', \'__return_false\', 11 );
add_filter( \'update_footer\', \'__return_false\', 11 );
}
add_action( \'admin_init\', \'wpse_remove_footer\' );
如果您想更改它:
add_action( \'admin_init\', function()
{
add_filter( \'admin_footer_text\', function() {
echo "This is a custom admin footer text";
}, 11 );
add_filter( \'update_footer\', function() {
echo "This is a custom footer update text";
}, 11 );
} );