Overview
  • Namespace
  • Class

Namespaces

  • WPGraphQL
    • Data
    • Type
      • Avatar
      • Comment
        • Connection
      • CommentAuthor
      • EditLock
      • Enum
      • MediaItem
        • Mutation
      • Plugin
        • Connection
      • PostObject
        • Connection
        • Mutation
      • PostType
      • Setting
      • Taxonomy
      • TermObject
        • Connection
        • Mutation
      • Theme
        • Connection
      • Union
      • User
        • Connection
        • Mutation
    • Utils

Classes

  • TermObjectCreate
  • TermObjectMutation
  • TermObjectUpdate

Class TermObjectMutation

Namespace: WPGraphQL\Type\TermObject\Mutation
Located at Type/TermObject/Mutation/TermObjectMutation.php

Methods summary

public static mixed|null
# input_fields( WP_Taxonomy $taxonomy )

Parameters

$taxonomy

Returns

mixed|null
public static mixed
# prepare_object( array $input, WP_Taxonomy $taxonomy, string $mutation_name )

This prepares the object to be mutated – ensures data is safe to be saved, and mapped from input args to WordPress $args

This prepares the object to be mutated – ensures data is safe to be saved, and mapped from input args to WordPress $args

Parameters

$input
The input from the GraphQL Request
$taxonomy
The Taxonomy object for the type of term being mutated
$mutation_name
The name of the mutation (create, update, etc)

Returns

mixed

Throws

Exception
API documentation generated by ApiGen