v1.2.0 — Blokada wp_insert_user() direct calls
What's new
Added
- Low-level
wp_pre_insert_user_datafilter (priority 1) that intercepts any directwp_insert_user()call from non-admins — catches form builders, membership plugins and custom code that bypass standard registration hooks. AWP_Erroris returned before any database write occurs. - New log label:
wp_insert_user (direct)for attempts caught by this filter.
Fixed
- Registrations bypassing all standard hooks (resulting in an empty log) are now blocked at the lowest possible WordPress level.
Exempt from blocking (intentional)
- Updates to existing users
- Administrators with the
create_userscapability - WP-CLI (migrations, imports)
Upgrade
Replace registration-blocker.php with the new version. No deactivation/reactivation required.