Schema Documentation

ContentType

Description

An Post Type object

Fields
Field NameDescription
canExport - Boolean Whether this content type should can be exported.
connectedTaxonomies - ContentTypeToTaxonomyConnection Connection between the ContentType type and the Taxonomy type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

contentNodes - ContentTypeToContentNodeConnection Connection between the ContentType type and the ContentNode type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

where - ContentTypeToContentNodeConnectionWhereArgs

Arguments for filtering the connection

deleteWithUser - Boolean Whether content of this type should be deleted when the author of it is deleted from the system.
description - String Description of the content type.
excludeFromSearch - Boolean Whether to exclude nodes of this content type from front end search results.
graphqlPluralName - String The plural name of the content type within the GraphQL Schema.
graphqlSingleName - String The singular name of the content type within the GraphQL Schema.
hasArchive - Boolean Whether this content type should have archives. Content archives are generated by type and by date.
hierarchical - Boolean Whether the content type is hierarchical, for example pages.
id - ID! The globally unique identifier of the post-type object.
isContentNode - Boolean! Whether the node is a Content Node
isFrontPage - Boolean! Whether this page is set to the static front page.
isPostsPage - Boolean! Whether this page is set to the blog posts page.
isRestricted - Boolean Whether the object is restricted from the current viewer
isTermNode - Boolean! Whether the node is a Term
label - String Display name of the content type.
labels - PostTypeLabelDetails Details about the content type labels.
menuIcon - String The name of the icon file to display as a menu icon.
menuPosition - Int The position of this post type in the menu. Only applies if show_in_menu is true.
name - String The internal name of the post type. This should not be used for display purposes.
public - Boolean Whether a content type is intended for use publicly either via the admin interface or by front-end users. While the default settings of exclude_from_search, publicly_queryable, show_ui, and show_in_nav_menus are inherited from public, each does not rely on this relationship and controls a very specific intention.
publiclyQueryable - Boolean Whether queries can be performed on the front end for the content type as part of parse_request().
restBase - String Name of content type to display in REST API "wp/v2" namespace.
restControllerClass - String The REST Controller class assigned to handling this content type.
showInAdminBar - Boolean Makes this content type available via the admin bar.
showInGraphql - Boolean Whether to add the content type to the GraphQL Schema.
showInMenu - Boolean Where to show the content type in the admin menu. To work, $show_ui must be true. If true, the post type is shown in its own top level menu. If false, no menu is shown. If a string of an existing top level menu (eg. "tools.php" or "edit.php?post_type=page"), the post type will be placed as a sub-menu of that.
showInNavMenus - Boolean Makes this content type available for selection in navigation menus.
showInRest - Boolean Whether the content type is associated with a route under the the REST API "wp/v2" namespace.
showUi - Boolean Whether to generate and allow a UI for managing this content type in the admin.
uri - String The unique resource identifier path
Example
{"canExport":false,"connectedTaxonomies":ContentTypeToTaxonomyConnection,"contentNodes":ContentTypeToContentNodeConnection,"deleteWithUser":false,"description":"xyz789","excludeFromSearch":true,"graphqlPluralName":"abc123","graphqlSingleName":"xyz789","hasArchive":true,"hierarchical":true,"id":"4","isContentNode":false,"isFrontPage":true,"isPostsPage":false,"isRestricted":true,"isTermNode":true,"label":"abc123","labels":PostTypeLabelDetails,"menuIcon":"xyz789","menuPosition":987,"name":"abc123","public":true,"publiclyQueryable":false,"restBase":"abc123","restControllerClass":"abc123","showInAdminBar":false,"showInGraphql":true,"showInMenu":true,"showInNavMenus":false,"showInRest":true,"showUi":true,"uri":"xyz789"}