If you have code that must run before plugins are loaded, place it in a Must Use Plugin. This is just a PHP file placed in wp-content/mu-plugins/
. Be aware that Must Use Plugins are activated just by existing.
If you have code that must run before plugins are loaded, place it in a Must Use Plugin. This is just a PHP file placed in wp-content/mu-plugins/
. Be aware that Must Use Plugins are activated just by existing.