You cannot do that in a theme, because themes are loaded after plugins.
Use a custom plugin, maybe a mu-plugin to be sure, because they are loaded earlier than normal plugins.
You cannot do that in a theme, because themes are loaded after plugins.
Use a custom plugin, maybe a mu-plugin to be sure, because they are loaded earlier than normal plugins.