WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Filter Reference/core version check locale

How to override locale WP version checks. This special locale can be overridden for update check-purposes.

Description

If you override the locale WP version check .. keep in mind that you still need to deploy any language PO/MO files manually!

Usage

add_filter('core_version_check_locale','my_core_version_check_locale',999,1);
/**
* Overrides locale versioncontrol checks. Removes need for seperate updates
*/
function my_core_version_check_locale($locale = 'en_US')
{
	return 'en_US';
}

Source File

wp_version_check() is located in wp-includes/update.php.