Change the footer in WordPress admin

To change the footer text in the WordPress admin area, add the following lines to your theme’s functions.php.

// FOOTER LEFT
// Change "Thank you for creating with WordPress" text
function snippets_admin_footer_left() {
    echo '<a href="https://your-domain.com" target="_blank">Your text</a>';
}
add_filter('admin_footer_text', 'snippets_admin_footer_left');
Code language: PHP (php)

To remove the version number on the right side of the footer, you need to remove the existing text and then add the new text.

// FOOTER RIGHT
// Remove the version number
function snippets_remove_version_admin_footer() {
    remove_filter( 'update_footer', 'core_update_footer' ); 
}
add_action( 'admin_menu', 'snippets_remove_version_admin_footer' );

// Add new text to the footer-right area. Use `.footer-thankyou` for italics.
function snippets_admin_footer_right() {
    echo '<span id="footer-thankyou">Developed by <a target="_blank" href="https://your-domain.com">Your Brand</a>.</span>';
}
add_filter('update_footer', 'snippets_admin_footer_right');
Code language: PHP (php)

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *