What's changed
Fixed
-
Admin notification emails from third-party plugins are now suppressed.
Some plugins send their own "New User Registration" admin email outside of WordPress'swp_new_user_notification()— before or independently ofwp_insert_user(). In those cases thewp_new_user_notification_email_adminfilter never fires (because user creation is already blocked atwp_pre_insert_user_data), so the email slipped through.A new
pre_wp_mailfilter (priority 1) now interceptswp_mail()directly: if the recipient matches the site admin email and the subject contains a known registration keyword (rejestracja nowego/new user registration), the email is silently discarded. Emails sent by a logged-in admin with thecreate_userscapability are not affected. -
wp_new_user_notification_email_adminpriority bumped toPHP_INT_MAX— ensures no other plugin hooked at a higher priority can re-enable the notification after Registration Blocker suppresses it.
Upgrade notes
Drop-in replacement for 1.3.1 — no settings changes required.