‘user_register’ hook – need to distinguish if created from wp admin panel
Users are created in two ways in my application.
The registration form uses a gravity form hook to register the user and send to various api’s.
But when creating a user from the admin panel, we use the ‘
This causes a conflict because in the gravity form procedure , when calling
wp_insert_user(), it triggers the ‘
user_register‘ hook , interrupting the script which isn’t finished saving the user to the api’s.
So I would have liked a hook which is only triggered when run from the admin panel.
Can this be accomplished?