CPTP_Util::is_post_type_support_rewrite PHP Method

is_post_type_support_rewrite() private static method

private static is_post_type_support_rewrite ( string $post_type ) : boolean
$post_type string
return boolean
    private static function is_post_type_support_rewrite($post_type)
    {
        $post_type_object = get_post_type_object($post_type);
        if (false === $post_type_object->rewrite) {
            return false;
        }
        return true;
    }