Adding a Custom Message to WordPress Admin Footer
Custom Code Solution
The simplest way to add a custom message to the WordPress admin footer is by using the admin_footer_text
filter hook. Here's how to do it:
Add this code to your theme's functions.php
file or in a site-specific plugin:
This code replaces the default admin footer text with your custom message:
function custom_admin_footer_text() {
return 'Custom footer message here';
}
add_filter('admin_footer_text', 'custom_admin_footer_text');
To add text to the right side of the admin footer (where the WordPress version typically appears):
function custom_admin_footer_version() {
return 'Right side message here';
}
add_filter('update_footer', 'custom_admin_footer_version', 11);
To combine both left and right messages with HTML formatting:
function custom_admin_footer_text() {
return 'Site maintained by <strong>Your Company</strong>';
}
function custom_admin_footer_version() {
return 'Need help? Contact support: support@example.com';
}
add_filter('admin_footer_text', 'custom_admin_footer_text');
add_filter('update_footer', 'custom_admin_footer_version', 11);
To add dynamic content like the current year and site name:
function custom_admin_footer_text() {
$year = date('Y');
$site_name = get_bloginfo('name');
return sprintf('© %s %s - All rights reserved', $year, $site_name);
}
add_filter('admin_footer_text', 'custom_admin_footer_text');
Plugin Solutions
If you prefer using a plugin, here are some reliable options:
-
Admin Footer Text - Simple plugin to customize admin footer text
-
Admin Custom Footer - Adds custom footer text with HTML support
Best Practices
- Keep the message concise and professional
- Use HTML sparingly to maintain readability
- Consider adding contact information or support links
- Test the message appearance across different screen sizes
- Avoid removing the WordPress version completely as it can be useful for debugging
The custom code solution is recommended for most cases as it's lightweight and gives you full control over the footer content.