Gocodebox_Banner_Notifier::notification_test_plugins_active( bool $value, array $plugins )
Plugins active test.
Contents
Parameters Parameters
- $value
-
(bool) (Required) The current test value.
- $plugins
-
(array) (Required) An array of plugin paths and filenames to check.
Source Source
File: libraries/banner-notifications/src/notifications.php
function notification_test_plugins_active( $value, $plugins ) {
if ( ! is_array( $plugins ) ) {
$plugins = array( $plugins );
}
foreach ( $plugins as $plugin ) {
if ( ! is_plugin_active( $plugin ) ) {
return false;
}
}
return true;
}
Expand full source code Collapse full source code View on GitHub