Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org


Sets the post lock


  • $lock (bool): The post lock boolean
  • $input (array): The input for the mutation
  • $post_type_object (WP_Post_Type): The Post Type Object for the type of post being mutated
  • $mutation_name (string): The name of the mutation (ex: create, update, delete
  • $context (AppContext): The AppContext passed down to all resolvers
  • $info (ResolveInfo): The ResolveInfo passed down to all resolvers
  • $intended_post_status (string): The intended post_status the post should have according to the mutation input
  • $default_post_status (string): The default status posts should use if an intended status wasn’t set