Php 是否可以禁用密码更改电子邮件并通过另一个系统发送?
我想禁用用户的标准Wordpress更改密码,并通过不同的系统发送电子邮件。在本例中,使用蓝色发送 我环顾四周,发现这会禁用电子邮件Php 是否可以禁用密码更改电子邮件并通过另一个系统发送?,php,wordpress,Php,Wordpress,我想禁用用户的标准Wordpress更改密码,并通过不同的系统发送电子邮件。在本例中,使用蓝色发送 我环顾四周,发现这会禁用电子邮件 add_filter( 'send_password_change_email', '__return_false' ); 这是我从“蓝色发送”发送特定模板的代码: $master->sendinblue_send_template($user_info->user_email, 34); 我怎样才能把两者结合起来呢?因此,当用户重置密码时,将向其
add_filter( 'send_password_change_email', '__return_false' );
这是我从“蓝色发送”发送特定模板的代码:
$master->sendinblue_send_template($user_info->user_email, 34);
我怎样才能把两者结合起来呢?因此,当用户重置密码时,将向其发送蓝色发送模板。您可以编写一个自定义函数,然后在过滤器中调用该函数
function send_custom_mail ()
{
$res = sendinblue_send_template($user_info->user_email, 34);
return false;
}
add_filter( 'send_password_change_email', 'send_custom_mail ');
如何将用户的电子邮件地址解析为该地址?