Customize WordPress admin dashboard footer.

In this tutorial, we’ll walk through adding a PHP snippet to the theme’s functions.php file to edit the “Thank you for creating with WordPress” text and remove the WordPress version from the Admin Dashboard footer.

// Function to edit footer text
function wpse_edit_text($content) {
    return "Thanks For creating with <a href=\"https://nayeemparvej.my.id/\">NayeeM</a>. If you need any help, Call: +8801301063548";
}

// Hook the function to change the footer text
add_filter( 'admin_footer_text', 'wpse_edit_text', 11 );

This code defines a function wpse_edit_text that returns the customized footer text. Then, it hooks this function to the admin_footer_text filter with a priority of 11, ensuring it overrides the default footer text.

Removing WordPress Version

Next, we’ll add another PHP snippet to remove the WordPress version from the Admin Dashboard footer.

// Function to remove WordPress version from footer
function change_footer_version() {
    return '';
}

// Hook the function to remove WordPress version
add_filter( 'update_footer', 'change_footer_version', 9999 );

This code defines a function change_footer_version that returns an empty string, effectively removing the WordPress version from the footer. It then hooks this function to the update_footer filter with a priority of 9999, ensuring it runs late in the execution order to override any other modifications.

Share