Given a Type Name and a $config array, this adds an InputType to the TypeRegistry

register_graphql_input_type( string $type_name, array $config );


  • $type_name (string): The unique name of the InputType
  • $config (array): Configuration for the input type
    • $description (string): Description of the input type. This will be used to self-document the schema and should describe to clients how the input type should be used.
    • $fields (array): The fields that are part of the input type.
      • $type (string): The field type
      • $description (string): The field description


File: access-functions.php



Additional Resources

Published by Jason Bahl

Jason is a Principal Software Engineer at WP Engine based in Denver, CO where he maintains WPGraphQL. When he's not writing code or evangelizing about GraphQL to the world, he enjoys escaping from escape rooms, playing soccer, board games and Fortnite.