Automattic\WooCommerce\Internal\StockNotifications

Config::requires_accountpublic staticWC 1.0

Check if an account is required.

Method of the class: Config{}

No Hooks.

Returns

true|false.

Usage

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

Config::requires_account() code WC 10.3.6

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