auto_core_update_send_email filter-hook . WP 3.7.0
Filters whether to send an email following an automatic background core update.
Usage
add_filter( 'auto_core_update_send_email', 'filter_function_name_6423', 10, 4 ); function filter_function_name_6423( $send, $type, $core_update, $result ){ // filter... return $send; }
- $send(true/false)
- Whether to send the email.
Default: true - $type(string)
- The type of email to send. Can be one of 'success', 'fail', 'critical'.
- $core_update(object)
- The update offer that was attempted.
- $result(mixed)
- The result for the core update. Can be WP_Error.
Changelog
Since 3.7.0 | Introduced. |
Where the hook is called
auto_core_update_send_email
wp-admin/includes/class-wp-automatic-updater.php 688
if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) {