automatic_updates_send_debug_email
Filters whether to send a debugging email for each automatic background update.
Использование
add_filter( 'automatic_updates_send_debug_email', 'wp_kama_automatic_updates_send_debug_email_filter' );
/**
* Function for `automatic_updates_send_debug_email` filter-hook.
*
* @param bool $development_version By default, emails are sent if the install is a development version. Return false to avoid the email.
*
* @return bool
*/
function wp_kama_automatic_updates_send_debug_email_filter( $development_version ){
// filter...
return $development_version;
}
- $development_version(true|false)
- By default, emails are sent if the install is a development version. Return false to avoid the email.
Список изменений
| С версии 3.7.0 | Введена. |
Где вызывается хук
automatic_updates_send_debug_email
wp-admin/includes/class-wp-automatic-updater.php 766
if ( apply_filters( 'automatic_updates_send_debug_email', $development_version ) ) {