Created
April 21, 2026 06:29
-
-
Save manchumahara/beaa7d7e0671828db465128c505aae13 to your computer and use it in GitHub Desktop.
Hide warning load_textdomain_just_in_time in wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // In functions.php or a mu-plugin | |
| add_filter('doing_it_wrong_trigger_error', function($trigger, $function_name) { | |
| if ($function_name === '_load_textdomain_just_in_time') { | |
| return false; | |
| } | |
| return $trigger; | |
| }, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment