Those first 2 actions you linked to from the codex, user_register
and profile_update
should be exactly what you need.
user_register
runs right after a user has successfully registered and gives you access to their $user_id which you can use to retrieve any user data you need, like name, email, etc.
add_action( 'user_register', 'wse_custom_register_action', 10, 1 );
function wse_custom_register_action( $user_id ) {
// send data to your external db/API
}
profile_update
works exactly the same way, and gives you access to both the old user data and the new, updated user data.
I don’t believe you would need edit_user_profile_update
in this instance.
Related Posts:
- Does wp_login hook fire on user registration?
- WordPress auto login after registration not working
- The ‘user_has_cap’ hook seems to take two page loads to trigger
- Post-Registration, post-meta hook?
- How can I do customizations on login, registration and password recovery forms?
- update post meta using user_register hook not working
- How to hook into user registration process Before user registers
- How to modify an add_action() inside a loop of core function
- How to increase password requirements for registration [closed]
- Can user_register output the password?
- How to hook in after user’s registration email has been sent?
- User update hook
- `rest_user_query` can’t access post author in post edit screen
- user_profile_update_errors hook not executing
- register_activation_hook not updating
- Hook when editing user
- Custom Front End Registration – How Does the Key work in the Password Set Request?
- How to change the default mail when admin approuved an user?
- Associate multiple email addresses with the same user account, so they can log in with either
- hooks for automatic approve user registration according to data in custom fields
- ‘user_register’ hook – need to distinguish if created from wp admin panel
- Display custom user profile fields in wordpress
- delete_user hook failed
- add_action doesn’t work for my function
- Updating user meta data from external link, user not logged in
- Help hooking into user_register
- wp_get_current_user Not working
- How to get user profile information before update?
- New User ID not working in custom function with user_register hook
- Which hook should I use for this scenario regarding the registration process and account/profile update?
- Retrieve New user’s ID
- Problem in register activation hook and Copying folder
- User register hook can’t access form request
- Where can I find a list of WordPress hooks?
- Whats the best way to share user data across multiple WordPress websites?
- Whats worth using add_action when we can simply use add_filter?
- Hook on trash post
- What the user_status column?
- How to limit user registration to a specific set of domains?
- Problem with Hebrew characters in username
- Send data to 3rd party api with wp_remote_post on wp_login
- How to customize the WP admin default help contents
- Hide gutenberg option blocks
- admin_post hook not called
- Bulk action hook for admin pages which uses WP_List_Table
- Will WordPress username displayed somewhere in the site?
- WP Admin Bar frontend issue with dashicon deregister
- Searching a hook which triggers when deleting a post to get all comments
- add_action for lost_password or modify wp-login.php?action=lostpassword
- Upload files programmatically to users
- Can I bulk register contributors for a new blog
- Add my own function to existing WooCommerce hook
- @wordpress/hooks use to add actions/filters within multiple plugin
- Firing a function AFTER redirect
- Why is save_post hook being called twice despite all my efforts?
- What’s hook to use immediately after a user is authentcated [duplicate]
- Hook before posting via JSON REST API
- add_action for unknown custom post types
- How to exclude a list of specific category in category widget in new post admin screen?
- Method to find a hook
- Understanding WP
- Add a user to a specific blog when they register?
- Executing Arbitrary Code at a Specific URL without Creating a Post or Page?
- Update a costume wp_usermeta key back to 0 every 24hours (time can be specified as needed)
- Displaying different in-page content to cliente/admin
- Can i add password field into my wp registration form?
- customize_controls_enqueue_scripts doesn’t fire from within my plugin
- Save User Meta Email Address in Lowercase
- WooCommerce single product page quantity description [closed]
- Execute JavaScript in WordPress Hook
- How to cancel the trash action inside wp_trash_post
- What is the difference between add_action and add_filter [duplicate]
- load-* hook for dashboard
- Is it possible to add the_content filter upon login?
- Use an array of page template slugs and $hook
- wp_logout hook never triggered
- add short description under price
- How do I use pre_option_{option_name} correctly?
- post.php AJAX request not being called when publishing post
- What is correct way to change user’s email?
- WordPress media library allow uploading fake file
- What hook do I use if I want to update a user profile field when a new user is created?
- How to add custom tab page in backend?
- Add html code in admin page
- Neccessary to call add_submenu_page and add_menu_page from admin_menu hook?
- New User Save Filter
- How to call do_action() to pass arguments to hooked functions that take different number of args?
- How to abort a save operation with a WordPress hook?
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- Check if front page within function passed to action
- Hook after creating a post and retrieve infos from this post immediatly
- $new_pass always returns null – password_reset hook
- How to resolve 500 error in post listing page?
- Cannot override hooks.php
- Removing action from template class
- Remove “enqueued” script from array
- How to access variables in the function where apply_filters() is called?
- How do you disable the verification process of user email changes?
- getSaveContent.extraProps hook for core/post-title doesn’t add new attributes on to the frontend
- Issues with creating user profile for a subscriber, but with different profile page and functionalities