You appear to be a bot. Output may be restricted
Description
Test if the plugin is activatedThis won't work for Multisite since it doesn't find the network activated plugins Even if it did, the admin may not be able to do anything.
Usage
oik_plugin_is_plugin_activated( $plugin );
Parameters
- $plugin
- ( mixed ) required –
Returns
voidSource
File name: oik-batchmove/admin/oik-activation.phpLines:
1 to 11 of 11
function oik_plugin_is_plugin_activated( $plugin ) { $active_plugins = get_option('active_plugins'); $activated = false; foreach ( $active_plugins as $key => $active_plugin ) { $bn = basename( $active_plugin, '.php' ); if ( $plugin == $bn ) { $activated = true; } } return( $activated ); }View on GitHub View on Trac