Skip to main content

Custom Code Example

For developers using wp_insert_user, rest_user_register, or custom hooks:

do_action('headless_user_blocker_validate', [
'email' => $user_email,
'name' => $user_name,
'ip' => $_SERVER['REMOTE_ADDR'],
'user_agent' => $_SERVER['HTTP_USER_AGENT'],
]);

Or if you’re using a front-end app (like React):

Make sure your registration endpoint triggers WordPress registration, and the plugin will automatically run.