WC_Install::maybe_enable_hpos()public staticWC 8.2.0

Enable HPOS by default for new shops.

Метод класса: WC_Install{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_Install::maybe_enable_hpos();

Список изменений

С версии 8.2.0 Введена.

Код WC_Install::maybe_enable_hpos() WC 9.8.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 );
	}
}