My shopping website is created by WordPress and WooCommerce. When user registers in website, two emails are sent to user, one from WooCommerce and one from WordPress. How can I prevent WordPress from sending the email? I just need woo commerce send the register successful email.
1条回答 默认 最新
- duanfu6160 2018-09-02 07:56关注
Add this to your theme's 'functions.php' which will disable both user & admin notifications.
if ( ! function_exists( 'wp_new_user_notification' ) ) : function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' ) { return; } endif;
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 链接问题 C++LNK2001 无法解析的外部符号
- ¥50 安装pyaudiokits失败
- ¥15 计组这些题应该咋做呀
- ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
- ¥15 让node服务器有自动加载文件的功能
- ¥15 jmeter脚本回放有的是对的有的是错的
- ¥15 r语言蛋白组学相关问题
- ¥15 Python时间序列如何拟合疏系数模型
- ¥15 求学软件的前人们指明方向🥺
- ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接