how do I disable new user registration email for specific admin user?

As the title of the question says, I would like only specific admin users to receive the new registration emails. Is it possible to restrict which admin user receives it?

Currently all admin users will receive an email notification.

I don't want to disable it globally but only on a per user basis.

Topic configuration Wordpress

Category Web


Going by wordpress wp_new_user_notification, github, wordpress code reference, the function that handles sending email for new users, it only send email to user and site admin by default.

There's a filter wp_new_user_notification_email_admin that you can hook into to change the admin details, maybe you have a plugin that uses this filter.

Try disabling them one by one and see if it fixes it.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.