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 470
do_action( 'woocommerce_installed' );
Where the hook is used in WooCommerce
woocommerce/includes/admin/class-wc-admin-notices.php 57
add_action( 'woocommerce_installed', array( __CLASS__, 'reset_admin_notices' ) );
woocommerce/includes/class-woocommerce.php 251
add_action( 'woocommerce_installed', array( $this, 'add_woocommerce_inbox_variant' ) );
woocommerce/includes/wc-core-functions.php 2337
add_action( 'woocommerce_installed', 'wc_delete_expired_transients' );
woocommerce/src/Internal/ProductAttributesLookup/DataRegenerator.php 61
self::add_action( 'woocommerce_installed', array( $this, 'run_woocommerce_installed_callback' ) );