Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#1567 closed enhancement (fixed)

New User Added hook

Reported by: zedd's profile Zedd Owned by: skippy's profile skippy
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)

registration-functions.patch (52 bytes) - added by skippy 20 years ago.
do_action('user_register', $user_id)

Download all attachments as: .zip

Change History (8)

#1 @Zedd
20 years ago

  • Version changed from 1.5.2 to 1.5.1

#2 @Zedd
20 years ago

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?

@skippy
20 years ago

do_action('user_register', $user_id)

#3 @skippy
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?

#4 @skippy
20 years ago

  • Milestone changed from 1.6 to 1.5.2

#5 @matt
20 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [2780]) Fixes #967, Fixes #972, Fixes #1578, Fixes #1580, Fixes #1567, Fixes #1481, Fixes #1186

#6 @matt
20 years ago

  • Resolution set to fixed

(In [2829]) Fixes #1567 for 1.6

#7 @(none)
18 years ago

  • Milestone 1.5.2 deleted

Milestone 1.5.2 deleted

Note: See TracTickets for help on using tickets.