ms_check_membership_status-<status>

The Membership 2 ms check membership status hook.

Description

do_action( 'ms_check_membership_status-<status>', (unknown) $instance, (unknown) $remaining_days, (unknown) $remaining_trial_days ); 

Parameters (3)

0. $instance (unknown)
The this.
1. $remaining_days (unknown)
The remaining days.
2. $remaining_trial_days (unknown)
The remaining trial days.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'ms_check_membership_status-{$status}', $instance, $remaining_days, $remaining_trial_days ); 
The following example is for adding a hook callback.
  1. // define the ms_check_membership_status-<status> callback 
  2. function action_ms_check_membership_status_status( $instance, $remaining_days, $remaining_trial_days ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "ms_check_membership_status-{$status}", 'action_ms_check_membership_status_status', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "ms_check_membership_status-{$status}", 'action_ms_check_membership_status_status', 10, 3 ); 

Defined (1)

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

/app/model/class-ms-model-relationship.php  
  1. do_action(