Automattic\WooCommerce\Internal\StockNotifications
Config::requires_account
Check if an account is required.
Метод класса: Config{}
Хуков нет.
Возвращает
true|false.
Использование
$result = Config::requires_account(): bool;
Код Config::requires_account() Config::requires account WC 10.7.0
public static function requires_account(): bool {
return 'yes' === get_option( 'woocommerce_customer_stock_notifications_require_account', 'no' );
}