onetone_is_plugin_active

The Onetone onetone is plugin active function.

Description

onetone_is_plugin_active( $plugin ); 

Parameters (1)

0. $plugin
The plugin.

Usage

  1. if ( !function_exists( 'onetone_is_plugin_active' ) ) { 
  2. require_once '/includes/theme-functions.php'; 
  3.  
  4. // The plugin. 
  5. $plugin = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = onetone_is_plugin_active($plugin); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/theme-functions.php  
  1. function onetone_is_plugin_active( $plugin ) { 
  2. return in_array( $plugin, (array) get_option( 'active_plugins', array() ) );