Thread Starter
B
(@bh8489)
I thought it might be worth adding that I’ve tried disabling new user emails with the following code:
if ( !function_exists( 'wp_new_user_notification' ) ) :
function wp_new_user_notification( $user_id, $plaintext_pass = '' ) {
return;
}
endif;
and that didn’t work. When I used this plugin to add a custom notification for the new user admin notification trigger, the custom notification successfully replaced the WordPress default– I just want neither to happen; no notification at all.
Love the plugin so far, for customizing emails… thanks Jack (et. al.)
Plugin Author
bnfw
(@voltronik)
Hi B,
Thanks for your message.
There are some notification that are currently missing from the plugin that WordPress added in 4.x. These are notably the ones when a user resets their password.
For now, you can override the ones that you can see but support for the others is coming in the version 1.4 of BNFW.
Hope this helps and continue to enjoy using the plugin.
Thanks,
Jack
Thread Starter
B
(@bh8489)
Thanks Jack,
That sounds great– I’ll look forward to v1.4 for the other ones. But for notifications that are present (like New User – Admin Notification), I see that I can override the default notification, but can I cancel it. As in– have no notification sent. Not a custom one, not the default one– no email.
(I’m happy to do it with a hook or equivalent in code, if you know of or offer any extendable API options.)
Thanks!
B
Plugin Author
bnfw
(@voltronik)
Hi B,
I think so. If you create a notification for it and disable it in the top right of the Notification editor, does this work for you?
Jack
Thread Starter
B
(@bh8489)
Hi Jack,
Disabling it in the top right of the notification editor just sent me back to the default WP notification, but I tracked out that the reason I wasn’t able to disable it in code was that there was another plugin re-queuing the default WP notification later on load than my theme. Once I disabled that, my code intervention worked. I imagine the same could be true of your plugin.
Though if you’re taking feature requests, I think an easier way to disable (not just customize) default WP notifications would be super useful. A “one stop shop” for all email notification needs.
Thanks for the kind support and great plugin!
B
Plugin Author
bnfw
(@voltronik)
Hi B,
Glad you got it working.
That’s certainly the plan. too – being a one-stop shop for all WordPress notifications.
I’ll look to see what I can do in terms of disabling notifications completely.
Thanks,
Jack