---
id: gk-gravityview-shortcode-self-nesting-limit
title: "Filter - gk/gravityview/shortcode/self-nesting-limit"
sidebar_label: "gk/gravityview/shortcode/self-nesting-limit"
tags:
  - "3.14.1"
---

# Filter: gk/gravityview/shortcode/self-nesting-limit

Modifies how many copies of a View can be drawn inside one another.

Attributes that change at every level, such as a tree of entries, would otherwise never stop.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $limit | `int` | The most copies inside one another. Default: 5. |
| $view | <a href="../../api/classes/gv-view">\GV\View</a> | The View being drawn. |

### Since

- 3.14.1

### Source

Defined in `src/Shortcode/GravityViewShortcode.php` at line 129

