Automattic\WooCommerce\Internal\StockNotifications

Config::requires_account │ public static │ WC 1.0

Check if an account is required.

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

Хуков нет.

Возвращает

bool.

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

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

Код Config::requires_account() WC 11.2.1

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