Are you facing this issue?
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ..... domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later.
Please create a mu-plugins folder into wp-content if it does not exist. Then create a disable-doing-it-wrong-notice.php
into it and paste this.
<?php
/**
* Plugin Name: Disable Doing It Wrong Notice (Load Textdomain)
* Description: Disables the "Doing it wrong" notice that appears when a textdomain is loaded just in time.
*/
add_filter( 'doing_it_wrong_trigger_error', function ( $doing_it_wrong, $function_name ) {
if ( '_load_textdomain_just_in_time' === $function_name ) {
return false;
}
return $doing_it_wrong;
}, 10, 2 );
Ref:
https://github.com/wp-media/wp-rocket/issues/7102
Leave a Reply