automatic_updates_send_debug_email

Filters whether to send a debugging email for each automatic background update.

Description

apply_filters( 'automatic_updates_send_debug_email', (bool) $development_version ); 

Parameters (1)

0. $development_version (bool)
By default, emails are sent if the install is a development version. Return false to avoid the email.

Usage

To run the hook, copy the example below.
  1. $development_version = apply_filters( 'automatic_updates_send_debug_email', $development_version ); 
  2.  
  3. if ( !empty( $development_version ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the automatic_updates_send_debug_email callback 
  2. function filter_automatic_updates_send_debug_email( $development_version ) { 
  3. // make filter magic happen here... 
  4. return $development_version
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'automatic_updates_send_debug_email', 'filter_automatic_updates_send_debug_email', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'automatic_updates_send_debug_email', 'filter_automatic_updates_send_debug_email', 10, 1 ); 

Defined (1)

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

/wp-admin/includes/class-wp-automatic-updater.php  
  1. if ( apply_filters( 'automatic_updates_send_debug_email', $development_version ) )