Conditionally change WordPress core language

You must define this filter as early as you can, before it is used anywhere. Best way to do it is to create must-use plugin.

I find the concept incredibly usefull since this scripts don’t require any setup like plugins do, and can stage environment for both your plugins and theme. Also they can’t be deactivated

tech