woocommerce_newly_installed
Run when WooCommerce has been installed for the first time.
Usage
add_action( 'woocommerce_newly_installed', 'wp_kama_woocommerce_newly_installed_action' );
/**
* Function for `woocommerce_newly_installed` action-hook.
*
* @return void
*/
function wp_kama_woocommerce_newly_installed_action(){
// action...
}Changelog
| Since 6.5.0 | Introduced. |
Where the hook is called
woocommerce_newly_installed
woocommerce/includes/class-wc-install.php 456
do_action( 'woocommerce_newly_installed' );
Where the hook is used in WooCommerce
woocommerce/includes/admin/notes/class-wc-notes-refund-returns.php 27
add_action( 'woocommerce_newly_installed', array( __CLASS__, 'on_newly_installed' ) );
woocommerce/includes/class-wc-install.php 417
add_action( 'woocommerce_newly_installed', array( __CLASS__, 'maybe_enable_hpos' ), 20 );
woocommerce/includes/class-wc-install.php 418
add_action( 'woocommerce_newly_installed', array( __CLASS__, 'add_coming_soon_option' ), 20 );
woocommerce/includes/class-wc-install.php 419
add_action( 'woocommerce_newly_installed', array( __CLASS__, 'enable_email_improvements_for_newly_installed' ), 20 );
woocommerce/includes/class-wc-install.php 420
add_action( 'woocommerce_newly_installed', array( __CLASS__, 'enable_customer_stock_notifications_signups' ), 20 );
woocommerce/includes/class-wc-install.php 421
add_action( 'woocommerce_newly_installed', array( __CLASS__, 'enable_analytics_scheduled_import' ), 20 );
woocommerce/includes/class-wc-install.php 422
add_action( 'woocommerce_newly_installed', array( __CLASS__, 'enable_product_instance_caching_for_newly_installed' ), 20 );
woocommerce/includes/class-wc-install.php 423
add_action( 'woocommerce_newly_installed', array( __CLASS__, 'disable_legacy_variation_price_hash_for_newly_installed' ), 20 );
woocommerce/includes/class-woocommerce.php 371
add_action( 'woocommerce_newly_installed', 'wc_set_hooked_blocks_version', 10 );
woocommerce/src/Internal/EmailEditor/Integration.php 183
add_action( 'woocommerce_newly_installed', array( WCEmailTemplateDivergenceDetector::class, 'mark_backfill_complete_on_fresh_install' ), 20 );