---
title: "How to hide the &#8220;Function _load_textdomain_just_in_time was called incorrectly&#8221; notice"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/general-help/downloads/how-to-hide-the-function-loadtextdomainjustintime-was-called-incorrectly-notice/"
---

![WordPress admin dashboard with multiple "Function _load_textdomain_just_in_time was called incorrectly" notices displayed](https://www.gravitykit.com/wp-content/uploads/2025/10/file-rSGU29uFz1.png)WordPress version 6.8 has brought back the "`Notice: Function _load_textdomain_just_in_time was called incorrectly` " error message on Dashboard pages. If you would like a detailed technical explanation, [please click here](https://github.com/WordPress/WordPress/commit/117b935b8969a3a972cc27173e525a6114420391)
At GravityKit, we are dedicated to eliminating unnecessary messages, such as[ PHP errors and notices](https://www.gravitykit.com/complete-guide-to-deprecation-notices-in-wordpress-and-php/), from appearing on your Dashboard.

We are currently developing a permanent solution. In the meantime, you can hide these PHP notices with the code snippet below or by setting the [WP\_DEBUG\_DISPLAY to false on your wp-config.php file.](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/#wp_debug_display)

```
add_filter( 'doing_it_wrong_trigger_error', function ( $show_notice, $function_name, $message ) {
	if ( '_load_textdomain_just_in_time' === $function_name && (false !== strpos( $message, 'gk-' ) || false !== strpos( $message, 'gravityview-' ))) {
		return false;
	}

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

```
add_filter( 'doing_it_wrong_trigger_error', function ( $show_notice, $function_name, $message ) {
	if ( '_load_textdomain_just_in_time' === $function_name && (false !== strpos( $message, 'gk-' ) || false !== strpos( $message, 'gravityview-' ))) {
		return false;
	}

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

Read here how to add this code snippet to your website: [Where to put code samples.](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/)