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.


Top ↑

Source

File: wp-admin/includes/upgrade.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.