automatic_updates_send_debug_email
Filters whether to send a debugging email for each automatic background update.
Description
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.
- $development_version = apply_filters( 'automatic_updates_send_debug_email', $development_version );
- if ( !empty( $development_version ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the automatic_updates_send_debug_email callback
- function filter_automatic_updates_send_debug_email( $development_version ) {
- // make filter magic happen here...
- return $development_version;
- };
- // add the filter
- add_filter( 'automatic_updates_send_debug_email', 'filter_automatic_updates_send_debug_email', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- if ( apply_filters( 'automatic_updates_send_debug_email', $development_version ) )