membership_subscription_form_before_registration_process

The Membership 2 membership subscription form before registration process hook.

Description

apply_filters( 'membership_subscription_form_before_registration_process', (unknown) $error ); 

Parameters (1)

0. $error (unknown)
The error.

Usage

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

Defined (3)

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

/app_old/membershipincludes/classes/membershippublic.php  
  1. $error = apply_filters( 'membership_subscription_form_before_registration_process', $error ); 
  1. $error = apply_filters( 'membership_subscription_form_before_registration_process', $error ); 
/app_old/membershipincludes/classes/membershipadmin.php  
  1. $error = apply_filters( 'membership_subscription_form_before_registration_process', $error );