Action run after the first membership was created and the setup wizard is completed.


do_action( 'ms_controller_membership_setup_completed', (MS_Model_Membership) $membership ); 

This hook is used by M2 to auto-setup some settings according to the first membership that was created (e.g. create menu items, enable Automatic Email Responses, etc.)

This filter is only executed ONCE! To perform actions always when a membership was created use the _created action above.

Parameters (1)

0. $membership (MS_Model_Membership)
The new membership.


To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'ms_controller_membership_setup_completed', $membership ); 
The following example is for adding a hook callback.
  1. // define the ms_controller_membership_setup_completed callback 
  2. function action_ms_controller_membership_setup_completed( $membership ) { 
  3. // make action magic happen here... 
  4. }; 
  6. // add the action 
  7. add_action( 'ms_controller_membership_setup_completed', 'action_ms_controller_membership_setup_completed', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'ms_controller_membership_setup_completed', 'action_ms_controller_membership_setup_completed', 10, 1 ); 

Defined (1)

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

  1. do_action(