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;
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报