> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/cms/wordpress/helpers-functions-1/weglot_add_json_keys.md).

# weglot\_add\_json\_keys

With this filter you can add keys Weglot msut translate into a json content.

The filter receives an array of JSON keys (empty by default: `name`, `description` and HTML values are always translated) and must return it. The values of the keys you add are translated too.

```php
add_filter( 'weglot_add_json_keys', 'custom_weglot_add_json_keys' );
function custom_weglot_add_json_keys( $keys ) {
    $keys[] = 'message';
    return $keys;
}
```
