WC_Install::enable_customer_stock_notifications_signups │ public static │ WC 0.0.0

Enable customer stock notifications signups by default for new shops.

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

Хуков нет.

Возвращает

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

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

$result = WC_Install::enable_customer_stock_notifications_signups();

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

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

Код WC_Install::enable_customer_stock_notifications_signups() WC 11.2.2

public static function enable_customer_stock_notifications_signups() {
	update_option( 'woocommerce_customer_stock_notifications_allow_signups', 'yes' );
}