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.
Method of the class: Main{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Main::is_apq_enabled(): bool;
Main::is_apq_enabled() Main::is apq enabled code WC 10.9.1
public static function is_apq_enabled(): bool {
return wc_string_to_bool( get_option( self::OPTION_APQ_ENABLED, 'yes' ) );
}