woocommerce_updated action-hookWC 2.2.0

Run after WooCommerce has been updated.

Usage

add_action( 'woocommerce_updated', 'wp_kama_woocommerce_updated_action' );

/**
 * Function for `woocommerce_updated` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_updated_action(){

	// action...
}

Changelog

Since 2.2.0 Introduced.

Where the hook is called

WC_Install::check_version()
woocommerce_updated
woocommerce/includes/class-wc-install.php 430
do_action( 'woocommerce_updated' );

Where the hook is used in WooCommerce

woocommerce/includes/class-wc-install.php 365
add_action( 'woocommerce_updated', array( __CLASS__, 'enable_email_improvements_for_existing_merchants' ), 20 );
woocommerce/includes/class-woocommerce.php 335
add_action( 'woocommerce_updated', array( $this, 'add_woocommerce_inbox_variant' ) );
woocommerce/includes/class-woocommerce.php 338
add_action( 'woocommerce_updated', array( $this, 'add_woocommerce_remote_variant' ) );
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 220
add_action( 'woocommerce_updated', array( $this, 'maybe_onboard_with_transact' ) );
woocommerce/src/Admin/Features/MarketingRecommendations/Init.php 32
add_action( 'woocommerce_updated', array( __CLASS__, 'delete_specs_transient' ) );
woocommerce/src/Internal/Admin/RemoteFreeExtensions/Init.php 23
add_action( 'woocommerce_updated', array( __CLASS__, 'delete_specs_transient' ) );