How to do I get a list of active plugins on my wordpress blog programmatically?

I have 2 blogs, one which is multisite and one which isn’t. I want to get a list of plugins active on both the blogs so I can compare them.
On the multisite blog, I want to list the plugins which are enabled network-wide as well as site wide.

4

The activated plugins are stored in the options table of a WordPress Blog under the key active_plugins

so you can use get_option('active_plugins'); of each blog and compare the arrays.

Leave a Comment