Automattic\WooCommerce\Api\Infrastructure
Main::is_apq_enabled
Whether the Apollo Automatic Persisted Queries (APQ) protocol is enabled.
Defaults to true. When disabled, the persistedQuery request extension is ignored and requests are processed as standard (non-persisted) queries.
Метод класса: Main{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = Main::is_apq_enabled(): bool;
Код Main::is_apq_enabled() Main::is apq enabled WC 11.0.1
public static function is_apq_enabled(): bool {
return wc_string_to_bool( get_option( self::OPTION_APQ_ENABLED, 'yes' ) );
}