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



wp_mail › WordPress过滤钩子

Since2.2.0
已弃用n/a
apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' )
参数:
  • (array) $args { 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: Yes
定义在:
文档:

Filters the wp_mail() arguments.





源码

$atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );