WC_Install::maybe_enable_hpos()public staticWC 8.2.0

Enable HPOS by default for new shops.

Method of the class: WC_Install{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Install::maybe_enable_hpos();

Changelog

Since 8.2.0 Introduced.

WC_Install::maybe_enable_hpos() code WC 9.4.2

public static function maybe_enable_hpos() {
	if ( self::should_enable_hpos_for_new_shop() ) {
		$feature_controller = wc_get_container()->get( FeaturesController::class );
		$feature_controller->change_feature_enable( 'custom_order_tables', true );
	}
}