Product
InterfaceThis is where you can browse products in this store.
Fields
The id field matches the WP_Post->ID field.
Product addons connected to this product.
Connection between the Product type and the paColor type
Connection between the Product type and the paSize type
Product average count
Catalog visibility
The number of comments. Even though WPGraphQL denotes this field as an integer, in WordPress this field should be saved as a numeric string for compatibility.
Whether the comments are open or closed for this particular post.
The content of the post.
CSS classes WordPress applies to the post-content wrapper based on the template layout attribute and theme.json settings.
Connection between the ContentNode type and the ContentType type
The name of the Content Type the node belongs to
Product or variation ID
Post publishing date.
The publishing date set in GMT.
Date on sale from
Date on sale to
Product description
The desired slug of the post
If a user has edited the node within the past 15 seconds, this will return the user that last edited. Null if the edit lock doesn't exist or is greater than 15 seconds
The RSS enclosure for the object
Connection between the ContentNode type and the EnqueuedScript type
Connection between the ContentNode type and the EnqueuedStylesheet type
The excerpt of the post.
If the product is featured
Connection between the NodeWithFeaturedImage type and the MediaItem type
The database identifier for the featured image node assigned to the content node
Globally unique ID of the featured image assigned to the node
Connection between the Product type and the MediaItem type
The global unique identifier for this post. This currently matches the value stored in WP_Post->guid and the guid column in the "post_objects" database table.
Whether the product object is password protected.
The globally unique identifier of the product object.
Main image
Whether the node is a Comment
Whether the node is a Content Node
Whether the node represents the front page.
Whether the node represents the blog page.
Whether the object is a node in the preview state
Whether the object is restricted from the current viewer
Whether the node is a Term
The user that most recently edited the node
The permalink of the post
The local modified time for a post. If a post was recently updated the modified field will change to match the corresponding time.
The GMT modified time for a post. If a post was recently updated the modified field will change to match the corresponding time in GMT.
Product name
Is product on sale?
The parent of the node. The parent object can be of various types
The password for the product object.
The database id of the preview node
Whether the object is a node in the preview state
Connection between the Product type and the productBrand type
Connection between the Product type and the productCategory type
Connection between the Product type and the productTag type
Connection between the Product type and the productType type
Can product be purchased?
Purchase note
Product review count
Connection between the Product type and the Comment type
If reviews are allowed
The Yoast SEO data of the ContentNode
Connection between the Product type and the shippingClass type
Product short description
Product SKU
Product slug
The current status of the object
The template assigned to the node
Connection between the Product type and the TermNode type
The title of the post. This is currently just the raw title. An amendment to support rendered title needs to be made.
Number total of sales
Product type
Connection between the Product type and the ProductUnion type
The unique resource identifier path
Is product virtual?
Connection between the Product type and the visibleProduct type
Connection between the Product type and the Comment type