Automattic\WooCommerce\Api\Infrastructure
Main::is_get_endpoint_enabled
Whether the GraphQL endpoint accepts GET requests.
Defaults to false. Reads from the option written by the GraphQL settings section so the REST route registration can decide which HTTP methods to accept.
Метод класса: Main{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = Main::is_get_endpoint_enabled(): bool;
Код Main::is_get_endpoint_enabled() Main::is get endpoint enabled WC 11.0.1
public static function is_get_endpoint_enabled(): bool {
return wc_string_to_bool( get_option( self::OPTION_GET_ENDPOINT_ENABLED, 'yes' ) );
}