Automattic\WooCommerce\Internal\StockNotifications

Config::requires_accountpublic staticWC 1.0

Check if an account is required.

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

Хуков нет.

Возвращает

true|false.

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

$result = Config::requires_account(): bool;

Код Config::requires_account() WC 10.7.0

public static function requires_account(): bool {
	return 'yes' === get_option( 'woocommerce_customer_stock_notifications_require_account', 'no' );
}