Class PostObjectMutation
Class PostObjectMutation
Namespace: WPGraphQL\Type\PostObject\Mutation
Package: WPGraphQL\Type\PostObject
Located at Type/PostObject/Mutation/PostObjectMutation.php
Package: WPGraphQL\Type\PostObject
Located at Type/PostObject/Mutation/PostObjectMutation.php
Methods summary
public static
mixed|array|null
|
|
public static
array
|
#
prepare_post_object( array $input, WP_Post_Type $post_type_object, string $mutation_name )
This handles inserting the post object |
public static
|
#
update_additional_post_object_data( $new_post_id, $input, $post_type_object, $mutation_name )
This updates additional data related to a post object, such as postmeta, term relationships, etc. |
public static
array|false
|
#
set_edit_lock( integer $post_id )
This is a copy of the wp_set_post_lock function that exists in WordPress core, but is not accessible because that part of WordPress is never loaded for WPGraphQL executions |