pre_wp_mail
过滤钩子
      apply_filters( 'pre_wp_mail', null, $atts )    - 参数
- 
- 
                (null|bool)
 $return
 Short-circuit return value.- Required: 是
 
- 
                (array)
 $atts
 {
 Array of the `wp_mail()` arguments.@type string|string[] $to Array or comma-separated list of email addresses to send message. 
 @type string $subject Email subject.
 @type string $message Message contents.
 @type string|string[] $headers Additional headers.
 @type string|string[] $attachments Paths to files to attach.
 }- Required: 是
 
 
- 
                (null|bool)
- 定义位置
- 
- 
                                  wp-includes/pluggable.php
 , line 214
 
- 
                                  wp-includes/pluggable.php
- 引入
- 5.7.0
- 弃用
- –
Filters whether to preempt sending an email.
Returning a non-null value will short-circuit {@see wp_mail()}, returning
that value instead. A boolean return value should be used to indicate whether
the email was successfully sent.
$pre_wp_mail = apply_filters( 'pre_wp_mail', null, $atts );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
 
      