For this, you have to use user_register
hook defined on wp-includes/users.php line 1759.
personal_options_update
hook is called, when an user updating his
own profile.edit_user_profile_update
is called, when an administrator updating other user profile.- nothing is called, when an administrator creating a new user.
On user-new.php
page, new user are created using the edit_user
function, function ref: (wp-admin/includes/users.php line 30)
So, the only option to use user_register
hook.
Related Posts:
- Automatically delete inactive users after 2 months
- Extending WP_User class and using this sub-class during the whole lifecycle
- Does wp_delete_user() remove all user content?
- How to delete all post and attachments of a user when I delete it?
- user_login vs. user_nicename
- Difference between update_user_meta and update_user_option
- WordPress auto login after registration not working
- Execute a function when admin changes the user role
- Force display name as full name
- How to create a template for a custom URI associated with the user
- How to order users alphabetically by their last name?
- How to discover and delete unused accounts?
- Allow guests to save favourite pages?
- Wp_User_Query not sorting by meta key
- How to use hyperdb to separate and share a user dataset between wordpress installs?
- LEFT JOIN, INNER OUTER JOIN, LEFT OUTER JOIN is driving me crazy. Please help?
- \WP_User Object | What’s the Difference Between {caps} and {allcaps}?
- Show Biographical Info while creating new user
- include user profiles in search results?
- Where to Store Custom User Fields
- Plugin that would allow WordPress Authors to “follow” other Authors and query “Activity Info” from that
- Querying Email Addresses for a List of Users with Same Last Name?
- User profile custom field
- Front end user meta options for users
- How do I properly format the user_role array?
- Extra User Profile Field Upload File / Image
- Drop down list in user profile page
- Searchable meta value in user.php
- Delete user from frontend
- Unique User Account Number + Displayed Via Shortcode
- WP User Query fails when searching meta queries and search columns
- Log all users out of all locations after 24 hours
- How to set show admin bar front to true for all users?
- Add user data to table when user is created?
- User Last Login Sort Column
- Updating user meta
- Use wp_update_user to update custom column in wp_users table
- Are User Levels Still Currently Used?
- Bulk delete users from a csv list
- WPML Default Language User Meta [closed]
- Display users in order by an “order” custom meta field
- Search Users base on meta_value & meta_key
- mysql query two database tables, users and usermeta and sort by custom meta int value
- Rest API code to get ID of current user not working: get_current_user_id() gives 0
- Updating wp_user_level on user update
- Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?
- User Meta Data in a Sortable Table
- get_user_meta an ID for multiple functions
- user_profile_update_errors hook not executing
- How can I attach a user to another user with user meta
- Column Sorting Code on users.php
- Creating user without username and password
- How to Access wp_usermeta Data Immediately After a New User is Created
- List users by meta_key and meta_value
- Is this code true or not
- WordPress SQL Issue not returning correct reselts
- The Simple and Correct Way to Add User Meta
- How to pull all the contributer users records and order by Designation (which is users meta data)?
- cannot get user_registered date from get_user_meta
- Restrict access to non-wordpress section of site with user roles?
- Associate multiple email addresses with the same user account, so they can log in with either
- how to set default update_user_meta values wordpress
- Add custom user meta data
- Cannot Update user meta in custom field
- Can I Create a Second Admin Level User Role?
- Delete a user from frontend
- How to add an attribute to a user?
- Adding fields to the “Add New User” but the form data not saved into DB
- SELECT from wp_users, get Displayname too
- Privilege to recover trashed posts
- how do I add role and capability after I create a new user
- User Meta stuff
- What does “link” refer to when you delete a user?
- How do I update user email from frontend input field?
- My custom user metadata is only active for only admin but i want it to be active on all users especially customers
- How to get image path from id using SQL
- Update user role for expired membership
- Get UserInfo from WordPress
- How can i add user display name drop down menu in frontend?
- Hook into add_user_role and update based on new and removed roles
- How to prevent multiple user accounts with the same meta field?
- How to Moderate Edits to User Profiles?
- meta_query orderby sort multiple keys
- How to update user meta from php file?
- REST_query_vars for users
- Get meta key with value for user
- Confusing problem with displaying message recipient metadata
- Require confirmation of current user’s email before updating database and before send_email_change_email
- Store extra user values permanently
- How do I change the user via SQL?
- New User ID not working in custom function with user_register hook
- User list order by user meta
- User management missing after migration to new host
- Creating Custom user type just like custom post
- Validate user meta and redirect
- Let admin users edit member profiles from front end
- Sort users by custom user meta value
- Problem with update_user_meta() meta_value
- How can I list users by date in an array in meta_value?
- Export user data from Squirrly’s Starbox plugin?