Description
Return an array of ALL active plugins – for single or multisite
Usage
$associative = cc_get_active_plugins();Parameters
Returns
associative array ? HACK for bw_get_active_plugins() which is coming in oik v1.14Source
File name: cookie-cat/shortcodes/cookie-cat.phpLines:
1 to 12 of 12
function cc_get_active_plugins() { if ( is_multisite() ) { $active_plugins = get_site_option( 'active_sitewide_plugins'); $names = bw_ms_get_all_plugin_names( $active_plugins ); } else { $active_plugins = get_option( 'active_plugins' ); $names = bw_get_all_plugin_names( $active_plugins ); } bw_trace2( $active_plugins, "active plugins" ); bw_trace2( $names, "active plugin names" ); return( $names ); }View on GitHub View on Trac
Called by
1 to 2 of 2
