Papi_Page_Type::has_post_type PHP Method

has_post_type() public method

Check if the given post is allowed to use the page type.
public has_post_type ( string $post_type ) : boolean
$post_type string
return boolean
    public function has_post_type($post_type)
    {
        return in_array($post_type, $this->post_type, true);
    }