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
- Prefix user login_name and validate it is unique on Registration
- How to change the default registration email ? (plugin and/or non-plugin)
- Is there a way to send HTML formatted emails with WordPress’ wp_mail() function?
- How to get WordPress’ hooks/actions run sequence?
- Where can I find a list of WordPress hooks?
- Is there a save_post hook for custom post types?
- Where is the right place to register/enqueue scripts & styles
- How to know what functions are hooked to an action/filter?
- How to hook update_post_meta and delete_post_meta?
- Are there any hooks that alter the 404 logic?
- Is there a hook that runs after a user logs in?
- Difference between do_action and add_action
- WP Cron Doesn’t Execute When Time Elapses
- How to allow an user role to create a new user under a role which lower than his level only?
- WooCommerce: change display order of product short description and price [closed]
- Why do some hooks not work inside class context?
- Adding fields to the “Add New User” screen in the dashboard
- Difference between after_setup_theme and init action hooks?
- get $post in init filter or action?
- Use wp init hook to call other hooks?
- How many times can I hook into the same action?
- How do I programmatically set default role for new users?
- How do I implement the WordPress Iris picker into my plugin on the front-end?
- How to intercept a 404 error
- Display user registration date
- Move excerpt meta box to above content editor
- Action hook for custom tax edit
- Trigger custom action when setting button pressed
- What is “all” in isset($wp_filter[‘all’])
- Whats the best way to share user data across multiple WordPress websites?
- Whats worth using add_action when we can simply use add_filter?
- Is there a limit to hook priority?
- Please explain how these hooks work
- Add_action to wp_head via functions.php
- Hook after image is uploaded and image sizes generated
- Is there a hook before the user is authenticated?
- Hook that fires when admin setting is saved
- add_action(‘wp_ajax_[action name]’, myfunction) problem
- What is the difference between update_post_meta and update_postmeta hooks?
- wordpress multisite, how to keep user on subdomain throughout registration process?
- Hook ‘wp_enqueue_scripts’ priority has no effect
- Hook on trash post
- Hook *after* user password change?
- Execute a function when admin changes the user role
- Auto-retrieve YouTube Image for Thumbnail?
- Which hook if user profile information is updated?
- How to remove action hook done in a plugin from functions.php in my theme?
- What the user_status column?
- Hooks for trashing, deleting, saving, restoring custom post type
- Is there a WordPress core & plugins update action hook?
- How to limit user registration to a specific set of domains?
- Hook into WordPress update?
- Problem with Hebrew characters in username
- trigger save_post event programmatically
- Remove email verification when new user register
- Implementing advanced add_* function wrappers
- Adding onload to body
- How to set up User email verification after Signup?
- How to let user set password on registration
- My add_action (wp_footer, ‘method’) is not calling?
- How to display custom user meta from registration in backend?
- Do WordPress Core Filenames Work as Hooks?
- What is the earliest possible hook for safely using `is_front_page`?
- Disable delete user
- switch_to_blog(): Load textdomain
- How to call a REST endpoint when a post is published?
- __NAMESPACE__ with register_activation_hook