0194-filters-graphql-post-object-create-default-post-status


目录


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

graphql_post_object_create_default_post_status

apply_filters( 'graphql_post_object_create_default_post_status', 'draft', $post_type_object, $mutation_name );

Filter the default post status to use when the post is initially created. Pass through a filter to allow other plugins to override the default (for example, Edit Flow, which provides control over customizing stati or various E-commerce plugins that make heavy use of custom stati)

Parameters

Source

apply_filters( 'graphql_post_object_create_default_post_status', 'draft', $post_type_object, $mutation_name );

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