#1567 closed enhancement (fixed)
New User Added hook
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.6 |
Component: | Administration | Keywords: | hook user bg|has-patch bg|2nd-opinion bg|dev-feedback |
Focuses: | Cc: |
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
@
20 years ago
- Keywords bg|has-patch bg|2nd-opinion bg|dev-feedback added
- Milestone set to 1.6
- Owner changed from anonymous to skippy
- Status changed from new to assigned
- Version changed from 1.5.1 to 1.6
Ought there be any distinction between admin-created users and self-registered users?
Note: See
TracTickets for help on using
tickets.
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?