Papi_Page_Type::has_post_type PHP Метод

has_post_type() публичный Метод

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