• Stiofan

    (@stiofansisland)


    Hello,

    Your plugin is causing a conflict with one of our plugins and i assume many others.

    You are using the function get_plugins() to check for active plugins, there are a few issues with this:
    1. Its not the most efficient way to check for active plugins.
    2. You are using the function on load, this function caches its results on first run so any plugin or theme that is loaded after your plugin can not filter the results, their filters are useless if you call it on PHP load (this is the problem we have)

    I took a quick look at your code and it looks like all you are using the function for it to check for active plugins, if so i would suggest you use https://codex.www.ads-software.com/Function_Reference/is_plugin_active

    If you are using it for something else i suggest you call it only after the ‘after_setup_theme’ action: https://codex.www.ads-software.com/Function_Reference/get_plugins#Notes

    Thanks,

    Stiofan

  • The topic ‘get_plugins() function used when not needed’ is closed to new replies.