ContentNode
InterfaceBase interface for content objects like posts, pages, and media items. Provides common fields available across these content types.
Fields
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
The ID of the node in the database.
Post publishing date.
The publishing date set in GMT.
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 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.
The globally unique ID for the object
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.
The database id of the preview node
Whether the object is a node in the preview state
The Yoast SEO data of the ContentNode
The uri slug for the post. This is equivalent to the WP_Post->post_name field and the post_name column in the database for the "post_objects" table.
The current status of the object
The template assigned to a node of content
The unique resource identifier path