WC_Install::add_coming_soon_option │ public static │ WC 9.3.0

Add the coming soon options for new shops.

Ensure that the options are set for all shops for performance even if core profiler is disabled on the host.

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

Хуков нет.

Возвращает

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

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

$result = WC_Install::add_coming_soon_option();

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

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

Код WC_Install::add_coming_soon_option() WC 11.2.2

public static function add_coming_soon_option() {
	add_option( 'woocommerce_coming_soon', 'yes' );
	add_option( 'woocommerce_store_pages_only', 'yes' );
}