0198-filters-graphql-post-object-mutations-allow-term-creation


目录


title: graphql_post_object_mutations_allow_term_creation hookType: filter hookGroup: models plugin: wp-graphql

graphql_post_object_mutations_allow_term_creation

apply_filters( 'graphql_post_object_mutations_allow_term_creation', true, $tax_object );

Filter whether to allow terms to be created during a post mutation. If a post mutation includes term input for a term that does not already exist, this will allow terms to be created in order to connect the term to the post object, but if filtered to false, this will prevent the term that doesn't already exist from being created during the mutation of the post.

Parameters

Source

apply_filters( 'graphql_post_object_mutations_allow_term_creation', true, $tax_object );

版本号 #2
由 壳壳虫 创建于 2026-08-29 15:36:26 UTC
由 壳壳虫 更新于 2026-08-29 15:36:26 UTC