wp-includes/class-wp-post.php:21Core class used to implement the WP_Post object.
$IDintpublic$post_authorstringpublic$post_datestringpublic$post_date_gmtstringpublic$post_contentstringpublic$post_titlestringpublic$post_excerptstringpublic$post_statusstringpublic$comment_statusstringpublic$ping_statusstringpublic$post_passwordstringpublic$post_namestringpublic$to_pingstringpublic$pingedstringpublic$post_modifiedstringpublic$post_modified_gmtstringpublic$post_content_filteredstringpublic$post_parentintpublic$guidstringpublic$post_typestringpublic$post_mime_typestringpublic$comment_countstringpublic$filterstringpublic#[AllowDynamicProperties]final class WP_Post { /** * Post ID. * * @since 3.5.0 * @var int */ public $ID; /** * ID of post author. * * A numeric string, for compatibility reasons. * * @since 3.5.0 * @var string */ public $post_author = '0'; /** * The post's local publication time. * * @since 3.5.0 * @var string */ public $post_date = '0000-00-00 00:00:00'; /** * The post's GMT publication time. * * @since 3.5.0 * @var string */ public $post_date_gmt = '0000-00-00 00:00:00'; /** * The post's content. * * @since 3.5.0 * @var string */ public $post_content = ''; /** * The post's title. * * @since 3.5.0 * @var string */ public $post_title = ''; /** * The post's excerpt. * * @since 3.5.0 * @var string */ public $post_excerpt = ''; /** * The post's status. * * @since 3.5.0 * @var string */ public $post_status = 'publish'; /** * Whether comments are allowed. * * @since 3.5.0 * @var string */ public $comment_status = 'open'; /** * Whether pings are allowed. *Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-post.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.