wp_upgrade WordPress Action Hook
The wp_upgrade hook is called when a user updates their WordPress site. This hook allows you to run a function when a user updates their WordPress site. This can be useful for a number of things, such as updating your plugin or theme to the latest version.
do_action( 'wp_upgrade', int $wp_db_version , int $wp_current_db_version ) #
Fires after a site is fully upgraded.
Parameters
- $wp_db_version
(int)The new $wp_db_version.
- $wp_current_db_version
(int)The old (current) $wp_db_version.
Source
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |