woocommerce_installed
Run after WooCommerce has been installed or updated.
Usage
add_action( 'woocommerce_installed', 'wp_kama_woocommerce_installed_action' ); /** * Function for `woocommerce_installed` action-hook. * * @return void */ function wp_kama_woocommerce_installed_action(){ // action... }
Changelog
Since 3.2.0 | Introduced. |
Where the hook is called
woocommerce/includes/class-wc-install.php 506
do_action( 'woocommerce_installed' );
Where the hook is used in WooCommerce
woocommerce/includes/admin/class-wc-admin-notices.php 67
add_action( 'woocommerce_installed', array( __CLASS__, 'reset_admin_notices' ) );
woocommerce/includes/class-woocommerce.php 302
add_action( 'woocommerce_installed', array( $this, 'add_woocommerce_inbox_variant' ) );
woocommerce/includes/class-woocommerce.php 305
add_action( 'woocommerce_installed', array( $this, 'add_woocommerce_remote_variant' ) );
woocommerce/includes/wc-core-functions.php 2457
add_action( 'woocommerce_installed', 'wc_delete_expired_transients' );
woocommerce/src/Internal/ProductAttributesLookup/DataRegenerator.php 65
add_action( 'woocommerce_installed', array( $this, 'run_woocommerce_installed_callback' ) );