跳转到主要内容

0151-filters-graphql-excluded-mutations


title: graphql_excluded_mutations hookType: filter hookGroup: schema-registration plugin: wp-graphql

graphql_excluded_mutations

apply_filters( 'graphql_excluded_mutations', [] );

Filter the list of GraphQL mutations to excluded from the registry.

  • Type: filter
  • Group: Schema Registration
  • Since: 1.14.0
  • Source File: plugins/wp-graphql/src/Registry/TypeRegistry.php

Parameters

  • $excluded_mutations (string[]): The names of the GraphQL mutations to exclude.

Source

apply_filters( 'graphql_excluded_mutations', [] );