membership_available_gateways

The WordPress Core membership available gateways hook.

Description

apply_filters( 'membership_available_gateways', (unknown) $mem_gateways ); 

Parameters (1)

0. $mem_gateways (unknown)
The mem gateways.

Usage

To run the hook, copy the example below.
  1. $mem_gateways = apply_filters( 'membership_available_gateways', $mem_gateways ); 
  2.  
  3. if ( !empty( $mem_gateways ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the membership_available_gateways callback 
  2. function filter_membership_available_gateways( $mem_gateways ) { 
  3. // make filter magic happen here... 
  4. return $mem_gateways
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'membership_available_gateways', 'filter_membership_available_gateways', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'membership_available_gateways', 'filter_membership_available_gateways', 10, 1 ); 

Defined (3)

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

/app_old/membershipincludes/includes/functions.php  
  1. return apply_filters('membership_available_gateways', $mem_gateways); 
  1. $mem_gateways = apply_filters('membership_available_gateways', $mem_gateways); 
  1. $mem_gateways = apply_filters('membership_available_gateways', $mem_gateways);