我有一个支持多站点的WordPress配置。我的主要领域是http://www.example.com, 有几个子域,如http://test1.example.com, http://test2.example.com, 等等
我在多站点主题的函数文件中编写了一个函数,用于向多站点用户发送一些通知。
$headers[] = \'Content-Type: text/html; charset=UTF-8\';
wp_mail(\'user@example.com\', \'Test\',\'Test\', $headers);
它在主域上根据需要发送邮件,但在子域功能文件中使用时不发送任何邮件。例如user@example.com
是的注册用户http://test1.example.com 他在他的子域页面上提交了一些信息http://test1.example.com/information-form. 我想将该信息发送到该用户的电子邮件。
EDIT: 场景:
我有一个表单,它有一些输入字段add_action(\'wp_ajax_xxx\', \'myFunction\'); 挂钩功能页(用户已登录)
myFunction
上述代码驻留