Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/255.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 如何写没有标题的wp_邮件_Wordpress_Php - Fatal编程技术网

Wordpress 如何写没有标题的wp_邮件

Wordpress 如何写没有标题的wp_邮件,wordpress,php,Wordpress,Php,写没有标题的wp_邮件可以吗 函数的用法是 Q:我可以这样使用它吗?是的,您可以使用它: <?php wp_mail( $to, $subject, $message); ?> $headers和$attachments默认为空(它们是可选的)。是的,您可以这样使用 <?php wp_mail( $to, $subject, $message); ?> $headers是一个可选参数是,如果您检查参数$headers下面的文本,则表明其(字符串或数组)(可选

写没有标题的wp_邮件可以吗

函数的用法是

Q:我可以这样使用它吗?
是的,您可以使用它:

<?php wp_mail( $to, $subject, $message); ?>


$headers和$attachments默认为空(它们是可选的)。

是的,您可以这样使用

<?php wp_mail( $to, $subject, $message); ?>


$headers是一个可选参数

是,如果您检查参数
$headers
下面的文本,则表明其
(字符串或数组)(可选)


来源:

是的,可以使用它,但它将使用默认标题。您可以这样做。你试过没有头球吗?
$to
(string or array) (required) The intended recipient(s). Multiple recipients may be specified using an array or a comma-separated string.
Default: None

$subject
(string) (required) The subject of the message.
Default: None

$message
(string) (required) Message content.
Default: None

$headers
(string or array) (optional) Mail headers to send with the message. (advanced)
Default: Empty

$attachments
(string or array) (optional) Files to attach: a single filename, an array of filenames, or a newline-delimited string list of multiple filenames. (advanced)
Default: Empty