How to hide the "Function _load_textdomain_just_in_time was called incorrectly" notice

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.

At GravityKit, we are dedicated to eliminating unnecessary messages, such as PHP errors and notices, 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.

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

	return $show_notice;
}, 10, 3 );

Read here how to add this code snippet to your website: Where to put code samples.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us