WP_Post Object

WP_Post Object Summary

The WP_Post class is used to contain post objects stored by the database and is returned by functions such as get_post.

WP_Post Object Data Contained in the Object

The WP_Post Object contains an ID, post_author, post_title, post_date, post_content, post-status and comment_count.

WP_Post Object Role in the Page Load

The WP_Post object is passed by reference to the the_post action hook, allowing developers to modify the post object right after being queried and setup.

Summary

WP_Post plays a crucial role in the page load process of WordPress by providing a structured way to sort and retrieve the data of a post.