Skip to content

Instantly share code, notes, and snippets.

@damiencarbery
Created November 30, 2024 19:28
Show Gist options
  • Save damiencarbery/b0f11cee6f80b06122b2e00f51f5f616 to your computer and use it in GitHub Desktop.
Save damiencarbery/b0f11cee6f80b06122b2e00f51f5f616 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Doing it wrong silencer
Plugin URI: http://www.damiencarbery.com
Description: Silence the warning about _load_textdomain_just_in_time.
Author: Damien Carbery
Version: 0.1
*/
// Solution from: https://developer.woocommerce.com/2024/11/11/developer-advisory-translation-loading-changes-in-wordpress-6-7/
add_filter( 'doing_it_wrong_trigger_error', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment