#1567 closed enhancement (fixed)
New User Added hook
| Reported by: | Zedd | Owned by: | skippy |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 1.6 |
| Severity: | normal | Keywords: | hook user bg|has-patch bg|2nd-opinion bg|dev-feedback |
| Cc: | Focuses: |
Description
There is a hook for new users registering through wp-register.php, but there is no hook for when new users are created using the Admin panel.
I suggest that the following line be inserted at or around line 75 of users.php:
do_action('user_register', $wpdb->insert_id);
Or, if you want to make it a different hook than the one used in wp_register.php, then of course simply change the action to 'user_add' or something.
Attachments (1)
Change History (8)
#3
@
21 years ago
- Keywords bg|has-patch bg|2nd-opinion bg|dev-feedback added
- Milestone → 1.6
- Owner changed from to
- Status new → assigned
- Version 1.5.1 → 1.6
Ought there be any distinction between admin-created users and self-registered users?
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Oh, my bad. I was working off the 1.5.1.3 code (which I'm working with for the site). I guess the place to put it now, from what I've seen in the current code, would be in the registration-functions.php file, somewhere in the create_user() function?