Skip to content

Instantly share code, notes, and snippets.

View t-hamano's full-sized avatar

Aki Hamano t-hamano

View GitHub Profile
@t-hamano
t-hamano / surpress-textdomain-warning.php
Created April 18, 2025 05:12
A WordPress MU plugin that temporarily suppresses PHP warnings that appear when translations are loaded too early
<?php
/**
* Plugin Name: Surpress Textdomain Warning
* Description: MU Plugin to suppress warnings that occur when translations are loaded too early.
* Requires at least: 6.7
* Requires PHP: 7.4
* Version: 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {