Ticket #1567 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

New User Added hook

Reported by: Zedd Assigned to: skippy
Priority: normal Milestone:
Component: Administration Version: 1.6
Severity: normal Keywords: hook user bg|has-patch bg|2nd-opinion bg|dev-feedback
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

registration-functions.patch (52 bytes) - added by skippy on 08/10/05 02:00:58.
do_action('user_register', $user_id)

Change History

08/09/05 21:25:25 changed by Zedd

  • version changed from 1.5.2 to 1.5.1.

08/09/05 22:35:39 changed by Zedd

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?

08/10/05 02:00:58 changed by skippy

  • attachment registration-functions.patch added.

do_action('user_register', $user_id)

08/10/05 02:02:13 changed by skippy

  • keywords changed from hook user to hook user bg|has-patch bg|2nd-opinion bg|dev-feedback.
  • owner changed from anonymous to skippy.
  • version changed from 1.5.1 to 1.6.
  • status changed from new to assigned.
  • milestone set to 1.6.

Ought there be any distinction between admin-created users and self-registered users?

08/11/05 12:46:23 changed by skippy

  • milestone changed from 1.6 to 1.5.2.

08/14/05 18:06:06 changed by matt

  • status changed from assigned to closed.
  • resolution set to fixed.

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

08/30/05 23:21:25 changed by matt

  • status changed from closed to closed.
  • resolution set to fixed.

(In [2829]) Fixes #1567 for 1.6

11/30/06 19:41:47 changed by

  • milestone deleted.

Milestone 1.5.2 deleted