edd_admin_sale_notice

The Easy Digital Downloads edd admin sale notice hook.

Description

do_action( 'edd_admin_sale_notice', (unknown) $payment_id, (unknown) $payment_data ); 

Parameters (2)

0. $payment_id (unknown)
The payment id.
1. $payment_data (unknown)
The payment data.

Usage

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

Defined (1)

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

/includes/emails/functions.php  
  1. do_action( 'edd_admin_sale_notice', $payment_id, $payment_data );