M_get_class_for_gateway

The Membership 2 M get class for gateway function.

Description

M_get_class_for_gateway( $gateway ); 

Parameters (1)

0. $gateway
The gateway.

Usage

  1. if ( !function_exists( 'M_get_class_for_gateway' ) ) { 
  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_get_class_for_gateway($gateway); 
  9.  

Defined (1)

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

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