pmpro_discount_code_after_level_settings

The Paid Memberships Pro pmpro discount code after level settings hook.

Description

do_action( 'pmpro_discount_code_after_level_settings', (unknown) $edit, (unknown) $level ); 

Parameters (2)

0. $edit (unknown)
The edit.
1. $level (unknown)
The level.

Usage

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

Defined (1)

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

/adminpages/discountcodes.php  
  1. <?php do_action("pmpro_discount_code_after_level_settings", $edit, $level); ?>