In this post I will help you know how to change WordPress admin Footer. It’s really simple, all you need to do is add a small, snippet and you are good to go.
If you are a plugin or theme developer then let me tell you, the filter you need to use is admin_footer_text, just go to the documentation now, and you don’t need to read further.
Why you need to change WordPress admin Footer
Changing WordPress admin can be helpful if you have your own plugin or theme and it has a admin page, and you want to update the footer to something custom, that is related to your plugin or theme.
- To show Plugin/theme version.
- To add call-to action like, rate us, or to give feedback
- To add important links, like link to website, docs or support
How to change WordPress Admin Footer Without Plugin
WordPress is really generous to provide a filter to change the Admin footer. You can check the documentation of the filter admin_footer_text.
Now I will explain you how to use the filter.
add_filter('admin_footer_text', 'your_func_name_to_change_footer');
function your_func_name_to_change_footer(){
return 'Powered By <a href="https://wparya.com">WPArya.com</a>';
}
So to make you understand what i did in the above code is, I added the filter admin_footer_text. And this filter will have a callback to function named your_func_name_to_change_footer.
Make sure you change this functions to something you want and is unique. If you are a plugin developer, you would be using a plugin prefix on all your functions so do the same here too.
Once you add it now just save it and now your admin footer will have the text you just saved.
How to Improve WordPress Security for Your Website
How to make last widget sticky in GeneratePress without plugin
How to change WordPress Admin Footer With Plugin
In your WordPress admin got to Plugins > Add New > Search for WP Code > Install and Activate it.
- Once activated Click on Add Snippet in WP Code.
- After you go to the Add Snippet page click on Create Custom Sinppet.
- In Custom Snippet Select PHP snippet.
- In PHP snippet add the code above about the admin_footer_text.
- After That activate it and Save it.
Conclusion
Once you do this your Admin footer text will change to the text of your choice as shown in the image below
Now if you have any issue or confusion, comment down I will help you fix it and get you a custom admin footer.