• potentdevelopment

    (@potentdevelopment)


    I added option_active_plugins filter to my functions.php file so I can selectively remove certain plugins from loading. I’ve unset the plugin in the plugin array and have verified that the returned array does not include the plugin to be removed.

    When I check the pages, the plugin is still loading. Any insight on this issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Joy

    (@joyously)

    The plugins are loaded before the theme, so you have to put the code somewhere else, like a must-use plugin.

    Thread Starter potentdevelopment

    (@potentdevelopment)

    @joyously do you have a theme based method for accomplishing the same thing?

    Thanks You!

    Joy

    (@joyously)

    No, because by the time the theme files are loaded, the plugins have already been loaded.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘option_active_plugins Filter Not Working’ is closed to new replies.