Papi_Page_Type::allowed PHP 메소드

allowed() 공개 메소드

Determine if the page type is allowed by capabilities and post type.
public allowed ( ) : boolean
리턴 boolean
    public function allowed()
    {
        $args = func_get_args();
        return empty($args) ? parent::allowed() : papi_current_user_is_allowed($this->capabilities) && isset($args[0]) && in_array($args[0], $this->post_type, true);
    }