# Silence "Translation Loading Triggered Too Early" Notices

> Hides the "_load_textdomain_just_in_time was called incorrectly" debug notice (added in WordPress 6.7) for plugins you cannot fix yourself, keeping debug logs readable.

- Type: PHP
- Runs: Run everywhere
- Category: [Multilingual](https://wpide.com/library/category/multilingual/)
- Tags: debug, textdomain, notices
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/i18n-silence-jit-textdomain-notice/

## Code

```php
$wpide_domains = array(); // e.g. array( 'some-plugin' ). Empty = all domains.

add_filter( 'doing_it_wrong_trigger_error', function ( $trigger, $function_name, $message ) use ( $wpide_domains ) {
    if ( '_load_textdomain_just_in_time' !== $function_name ) {
        return $trigger;
    }

    if ( ! $wpide_domains ) {
        return false;
    }

    foreach ( $wpide_domains as $domain ) {
        if ( false !== strpos( $message, '<code>' . $domain . '</code>' ) ) {
            return false;
        }
    }

    return $trigger;
}, 10, 3 );
```

## Notes

List the text domains to silence in $wpide_domains, or leave it empty to silence the notice for all of them. Report the issue to the plugin author too.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Silence "Translation Loading Triggered Too Early" Notices" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
