> 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/wordpress/use-cases/how-to-not-translate-specific-ajax-action.md).

# How to not translate specific ajax action

Weglot translates the response of admin-ajax actions by default. If a specific AJAX action should not be translated, add it to the list with the `weglot_ajax_no_translate` filter.

#### Example: excluding the `loadmore` ajax action

```php
add_filter( 'weglot_ajax_no_translate', 'custom_ajax_no_translate', 10, 1 );
function custom_ajax_no_translate( $ajax_action ) {
    $ajax_action[] = 'loadmore';
    return $ajax_action;
}
```
