‘user_register’ hook – need to distinguish if created from wp admin panel
Question
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 ‘user_register
‘ hook.
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?
0
2 years
2020-12-28T10:10:37-05:00
2020-12-28T10:10:37-05:00 0 Answers
4 views
0
Leave an answer