How to Change the Version Number in WordPress Admin Footer

Home » Snippets » How to Change the Version Number in WordPress Admin Footer
0

Created with:

Visibility: 

public

Creator: WPTurbo Team

Customize with WPTurbo AI
X

Add Snippet To Project

New Project
Add To Existing Project

If you’re familiar with WordPress, you know that the CMS is constantly being updated with new features and security patches. When you log into your dashboard as an admin, you may notice a small text in the footer that tells you which version of WordPress you’re using. This information can be helpful, but did you know that you can also change the version number that is displayed? In this article, we’ll show you how to easily modify the version number in the WordPress admin footer.

					function wpturbo_change_admin_footer_version() {
    return 'Powered by ' . __('WordPress', 'wpturbo') . ' ' . get_bloginfo( 'version' );
}
add_filter( 'update_footer', 'wpturbo_change_admin_footer_version', 999 );
				

The code snippet above is used to customize the version number displayed in the WordPress admin footer. By default, the footer displays the WordPress version number and the theme name.

To change this, we start by defining a new function called wpturbo_change_admin_footer_version(). The function will replace the default version information with a new message for the admin footer.

Inside the function, we use the return statement and a concatenation of the __('WordPress', 'wpturbo') function and the get_bloginfo('version') function. The __('WordPress', 'wpturbo') function is used to translate and output the ‘WordPress’ string in case the site is running in a different language. The get_bloginfo('version') function retrieves the current version number of the site.

Once our message is ready, we then make use of the add_filter() function to set our new function as the callback for the update_footer filter. The 999 parameter used in the add_filter() function specifies the priority of the filter, which ensures our function runs after all other callbacks for the filter have run.

Overall, this code snippet allows you to easily update the footer message on the WordPress admin dashboard to display your desired text instead of the default information.

Register an account to save your snippets or go Pro to get more features.