ms_gateway_form

The Membership 2 ms gateway form hook.

Description

apply_filters( 'ms_gateway_form', $ob_get_clean, (unknown) $gateway, (unknown) $invoice, (unknown) $instance ); 

Parameters (4)

0. $ob_get_clean
The ob get clean.
1. $gateway (unknown)
The gateway.
2. $invoice (unknown)
The invoice.
3. $instance (unknown)
The this.

Usage

To run the hook, copy the example below.
  1. $ob_get_clean = apply_filters( 'ms_gateway_form', $ob_get_clean, $gateway, $invoice, $instance ); 
  2.  
  3. if ( !empty( $ob_get_clean ) ) { 
  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_form callback 
  2. function filter_ms_gateway_form( $ob_get_clean, $gateway, $invoice, $instance ) { 
  3. // make filter magic happen here... 
  4. return $ob_get_clean
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ms_gateway_form', 'filter_ms_gateway_form', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ms_gateway_form', 'filter_ms_gateway_form', 10, 4 ); 

Defined (6)

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

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