I'm trying to define the constant
true so that the interface of the Advanced Custom Fields plugin is hidden on all of my multisite subsites except the parent. For clarity and maintainability, I'm wanting to do this from an
mu-plugins plugin that will also control the fields displayed by that plugin.
I thought this would do it but it didn't:
if( get_current_blog_id() !== 1 ) define( 'ACF_Lite', true );
The plugin author says that this needs to be in
wp-config.php, but I'm surprised that this doesn't work because, according to the codex, mu-plugins are:
Loaded by PHP, in alphabetical order, before normal plugins,
I've confirmed that
get_current_blog_id() returns the right ID, so that's not the problem. I've also tried explicitly hooking that to
plugins_loaded but that has failed.
Can anyone explain why I can't define this from