Error notice _load_textdomain_just_in_time
-
Hi there, you deleted my comment on the same issue in this support forum which you marked solved although it persists:
Please update your plugin code to get rid of the PHP error notice in the WordPress debugging log as follows:
function imagify_load_translations() {
static $done = false;if ( $done ) { return; } $done = true; // Load translations after the 'init' action add_action('init', function() { load_plugin_textdomain( 'imagify', false, dirname( plugin_basename( IMAGIFY_FILE ) ) . '/languages/' ); });}
You are welcome.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Error notice _load_textdomain_just_in_time’ is closed to new replies.