graphql_is_valid_http_content_type
apply_filters( 'graphql_is_valid_http_content_type', $is_valid, $content_type );
Allow graphql to validate custom content types for HTTP POST requests
- Type: filter
- Group: Request Lifecycle
- Since: 2.1.0
- Source File:
plugins/wp-graphql/src/Request.php
Parameters
$is_valid(bool): Whether the content type is valid$content_type(string): The content type header value that was received
Source
apply_filters( 'graphql_is_valid_http_content_type', $is_valid, $content_type );
Related
Request::is_valid_http_content_type()inplugins/wp-graphql/src/Request.php:1067