You appear to be a bot. Output may be restricted
Description
Extract unique plugin names from an array of pluginsgiven an array of (active) plugin names return a list of the uniquely downloadable plugins
Usage
bw_get_unique_plugin_names( $plugins );
Parameters
- $plugins
- ( mixed ) required –
Returns
voidSource
File name: oik-bob-bing-wide/shortcodes/oik-plug.phpLines:
1 to 11 of 11
function bw_get_unique_plugin_names( $plugins ) { $names = array(); foreach ( $plugins as $plugin ) { $name = explode( "/", $plugin ); // bw_trace( $name, __FUNCTION__, __LINE__, __FILE__, "name" ); $names[$name[0]] = $name[0]; } // bw_trace( $names, __FUNCTION__, __LINE__, __FILE__, "names" ); sort( $names ); return( $names ); }View on GitHub