public function set_post_type($post_type) { if (!is_array($post_type)) { $post_type = array($post_type); } $this->post_type = $post_type; return $this; }