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

  • UserCreate
  • UserDelete
  • UserMutation
  • UserUpdate

Class UserMutation

Class UserMutation

Namespace: WPGraphQL\Type\User\Mutation
Package: WPGraphQL\Type\User\Mutation
Located at Type/User/Mutation/UserMutation.php

Methods summary

public static array|null
# input_fields( )

Defines the accepted input arguments

Defines the accepted input arguments

Returns

array|null
public static array
# prepare_user_object( array $input, string $mutation_name )

Maps the GraphQL input to a format that the WordPress functions can use

Maps the GraphQL input to a format that the WordPress functions can use

Parameters

$input
Data coming from the GraphQL mutation query input
$mutation_name
Name of the mutation being performed

Returns

array
public static
# update_additional_user_object_data( integer $new_user_id, array $input, string $mutation_name )

This updates additional data related to the user object after the initial mutation has happened

This updates additional data related to the user object after the initial mutation has happened

Parameters

$new_user_id
The ID of the user that was just updated
$input
The input data from the GraphQL query
$mutation_name
Name of the mutation currently being run
API documentation generated by ApiGen