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