public function get_dummy_post($post_type) { return new WP_Post((object) ['post_type' => $post_type, 'dummy' => true]); }