pmpro_is_plugin_active

The Paid Memberships Pro pmpro is plugin active function.

Description

pmpro_is_plugin_active( $plugin ); 

Parameters (1)

0. $plugin
The plugin.

Usage

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

Defined (1)

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

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