/**
* Constructor
*
* @param integer $ID
* @param bool $withWPPost
* load into the Post object all members from \WP_Post
*
* @see https://developer.wordpress.org/reference/classes/wp_post/
*/
public function __construct($ID = 0, $withWPPost = false)
{
parent::__construct($ID);
if ($withWPPost) {
$this->wpPost = \WP_Post::get_instance($this->ID);
}
}