wpseek.com
WordPress开发者和主题制作者的搜索引擎



auto_core_update_send_email › WordPress过滤钩子

Since3.7.0
已弃用n/a
apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result )
参数: (4)
  • (bool) $send Whether to send the email. Default true.
    Required: Yes
  • (string) $type The type of email to send. Can be one of 'success', 'fail', 'critical'.
    Required: Yes
  • (object) $core_update The update offer that was attempted.
    Required: Yes
  • (mixed) $result The result for the core update. Can be WP_Error.
    Required: Yes
定义在:
文档:

Filters whether to send an email following an automatic background core update.





源码

if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) {