ms_gateway_button

The Membership 2 ms gateway button hook.

Description

apply_filters( 'ms_gateway_button', (unknown) $html, (unknown) $gateway_id, (unknown) $instance ); 

Parameters (3)

0. $html (unknown)
The html.
1. $gateway_id (unknown)
The gateway id.
2. $instance (unknown)
The instance.

Usage

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

Defined (5)

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

/app/gateway/paypalstandard/view/class-ms-gateway-paypalstandard-view-button.php  
  1. $html = apply_filters( 
/app/gateway/paypalsingle/view/class-ms-gateway-paypalsingle-view-button.php  
  1. $html = apply_filters( 
/app/gateway/manual/view/class-ms-gateway-manual-view-button.php  
  1. $html = apply_filters( 
/app/gateway/free/view/class-ms-gateway-free-view-button.php  
  1. $html = apply_filters( 
/app/gateway/authorize/view/class-ms-gateway-authorize-view-button.php  
  1. $html = apply_filters(