edd_admin_notices_disabled

Checks whether admin sale notices are disabled.

Description

edd_admin_notices_disabled( (int) $payment_id = 0 ); 

Parameters (1)

0. $payment_id — Optional. (int)
The payment id.

Usage

  1. if ( !function_exists( 'edd_admin_notices_disabled' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'easy-digital-downloads/includes/emails/functions.php'; 
  3.  
  4. // The payment id. 
  5. $payment_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = edd_admin_notices_disabled($payment_id); 
  9.  

Defined (1)

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

/includes/emails/functions.php  
  1. function edd_admin_notices_disabled( $payment_id = 0 ) { 
  2. $ret = edd_get_option( 'disable_admin_notices', false ); 
  3. return (bool) apply_filters( 'edd_admin_notices_disabled', $ret, $payment_id );