You appear to be a bot. Output may be restricted
Description
Return an associative version of the sitewide active plugins arrayThe MS active plugins array is structured like this
$key | $value |
---|---|
[oik-nivo-slider/oik-nivo-slider.php] => | 1335804038 |
[oik/oik.php] => | 1335804114 |
Usage
bw_ms_get_all_plugin_names( $active_plugins );
Parameters
- $active_plugins
- ( mixed ) required –
Returns
voidSource
File name: oik/libs/oik-depends.phpLines:
1 to 10 of 10
function bw_ms_get_all_plugin_names( $active_plugins ) { $names = array(); if ( count( $active_plugins ) ) { foreach ( $active_plugins as $key => $value ) { $name = basename( $key, '.php' ); $names[$name] = $key; } } return( $names ); }View on GitHub View on Trac