How to disable admin footer in WordPress
In this tutorial, you will get to know how to disable the admin footer in WordPress, you can use a code snippet in your theme’s functions.php
file or in a custom plugin. Here’s how you can achieve that:
- Using a Theme’s
functions.php
File:
Open your theme’s functions.php file (located in the wp-content/themes/your-theme-name/ directory) and add the following code at the end:
function remove_admin_footer_text() {
echo '';
}
add_filter('admin_footer_text', 'remove_admin_footer_text');
Save the functions.php file and the admin footer text should now be removed.
2. Creating a Custom Plugin:
If you prefer to keep your modifications separate from the theme, you can create a custom plugin. Here’s how:
- Create a new directory in wp-content/plugins/ and give it a name, for example, “custom-admin-footer-remover”.
- Inside that directory, create a new PHP file, e.g., “custom-admin-footer-remover.php”.
- Open “custom-admin-footer-remover.php” in a code editor and add the following code:
<?php
/*
Plugin Name: Custom Admin Footer Remover
Description: Removes the admin footer text.
*/
function remove_admin_footer_text() {
echo '';
}
add_filter('admin_footer_text', 'remove_admin_footer_text');
Now, go to your WordPress admin area and navigate to Plugins > Installed Plugins. You should see your newly created plugin listed there. Activate it.
After activating the plugin, the admin footer text should be removed from the WordPress admin area.
Note: Remember that removing or modifying core WordPress functionality can have unintended consequences or affect the user experience. It’s a good practice to create a backup of your site before making any significant changes.