# kirbytags:before

****

```php "/site/config/config.php"
return [
    'hooks' => [
        'kirbytags:before' => function (string $text, array $data, array $options) {
            // your code goes here
            return $text;
        }
    ]
]
```

| Name | Type |
| ---- | ---- |
| `$text` | `string` |
| `$data` | `array` |
| `$options` | `array` |

## More information

- <a href="https://getkirby.com/docs/cookbook/extensions/kirbytext-hooks">The order of kirbytext/kirbytags hooks</a>
- <a href="https://getkirby.com/docs/cookbook/extensions/columns-in-kirbytext">Columns in KirbyText</a>