M_is_gateway_active

The Membership 2 M is gateway active function.

Description

M_is_gateway_active( $gateway ); 

Parameters (1)

0. $gateway
The gateway.

Usage

  1. if ( !function_exists( 'M_is_gateway_active' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/classes/class.gateway.php'; 
  3.  
  4. // The gateway. 
  5. $gateway = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = M_is_gateway_active($gateway); 
  9.  

Defined (1)

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

/app_old/membershipincludes/classes/class.gateway.php  
  1. function M_is_gateway_active( $gateway ) { 
  2. global $M_Gateways; 
  3.  
  4. if(isset($M_Gateways[$gateway])) { 
  5. return true; 
  6. } else { 
  7. return false;