woocommerce_enable_hpos_by_default_for_new_shops filter-hookWC 8.2.0

Filter to enable HPOS by default for new shops.

Usage

add_filter( 'woocommerce_enable_hpos_by_default_for_new_shops', 'wp_kama_woocommerce_enable_hpos_by_default_for_new_shops_filter' );

/**
 * Function for `woocommerce_enable_hpos_by_default_for_new_shops` filter-hook.
 * 
 * @param  $true 
 *
 * @return 
 */
function wp_kama_woocommerce_enable_hpos_by_default_for_new_shops_filter( $true ){

	// filter...
	return $true;
}
$true
-

Changelog

Since 8.2.0 Introduced.

Where the hook is called

WC_Install::should_enable_hpos_for_new_shop()
woocommerce_enable_hpos_by_default_for_new_shops
woocommerce/includes/class-wc-install.php 1001
return apply_filters( 'woocommerce_enable_hpos_by_default_for_new_shops', true );

Where the hook is used in WooCommerce

Usage not found.