Filter whether the logs can be seen in the request results or not
apply_filters( 'graphql_user_can_see_trace_data', bool $can_see );
Params
- $can_see (bool): Whether the requestor can see the logs or not
Filter whether the logs can be seen in the request results or not
apply_filters( 'graphql_user_can_see_trace_data', bool $can_see );
Filter the $insert_args
apply_filters( 'graphql_term_object_insert_term_args', array $insert_args, array $input, WP_Taxonomy $taxonomy, string $mutation_name );
Filter the input fields. This allows plugins/themes to hook in and alter what $args should be allowed to be passed from a GraphQL Query to the get_terms query.
apply_filters( 'graphql_map_input_fields_to_get_terms', array $query_args, array $where_args, string $taxonomy, mixed $source, array $all_args, AppContext $context, ResolveInfo $info );
Filter the query_args that should be applied to the query. This filter is applied AFTER the input args from the GraphQL Query have been applied and has the potential to override the GraphQL Query Input Args.
apply_filters( 'graphql_term_object_connection_query_args', array $query_args, mixed $source, array $args, AppContext $context, ResolveInfo $info );
Filter the settings sections
apply_filters( 'graphql_settings_sections', array $settings_sections );
Filter the setting field config
apply_filters( 'graphql_setting_field_config', array $field_config, string $field_name, string $section );
Filter the $status_code before setting the headers
apply_filters( 'graphql_response_status_code', int $http_status_code, array $response, array $graphql_results, string $query, string $operation_name, array $variables, WP_User $user );
Filter the $headers to send
apply_filters( 'graphql_response_headers_to_send', array $headers );
Filter to determine if nocache headers are sent on authenticated requests.
apply_filters( 'graphql_send_nocache_headers', bool $send_headers );
Filtered list of access control headers
apply_filters( 'graphql_access_control_allow_headers', array $access_control_headers );