---
title: UnrecognizedContentForArguments
description: Ensures no unknown arguments are provided when rendering a static block.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-content-for-arguments
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-content-for-arguments.md
api_name: liquid
---

# Unrecognized​Content​For​Arguments

All arguments provided when rendering a static block must match the arguments defined in that block's [LiquidDoc](https://shopify.dev/docs/storefronts/themes/tools/liquid-doc).

***

## Examples

The following examples contain code snippets that either fail or pass this check. All examples refer to the following block that defines two parameters (one optional, indentified by square brackets; one required).

## blocks/example-block.liquid

```liquid
{% doc %}
  @param {string} some_str
  @param {number} [some_num]
{% enddoc %}
```

### ✗ Fail

In the following example, the static block is being rendered with an unrecognized argument:

## sections/section.liquid

```liquid
{% content_for 'block', type: 'example-block', some_str: 'text', some_num: 1, some_bool: false %}
```

### ✓ Pass

In the following example, the static block is being rendered with a recognized argument:

## sections/section.liquid

```liquid
{% content_for 'block', type: 'example-block', some_str: 'text', some_num: 1 %}
```

***

## Options

The following example contains the default configuration for this check:

```yaml
UnrecognizedContentForArguments:
enabled: true
severity: warning
```

| Parameter | Description |
| - | - |
| `enabled` | Whether this check is enabled. |
| `severity` | The [severity](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration#check-severity) of the check. |

***

## Disabling this check

Disabling this check isn't recommended.

***
