Automattic\WooCommerce\Internal\StockNotifications
Config::requires_account
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() 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' );
}