Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#33008 closed enhancement (fixed)

Add action that fires when inviting a user

Reported by: ebinnion's profile ebinnion Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.4 Priority: normal
Severity: normal Version: 3.0
Component: Users Keywords: has-patch commit
Focuses: administration, multisite Cc:


I am currently looking into adding notifications that fire when a user is invited to a site.

While it is possible to use the add_option hook and then check that $option is of the form new_user_, I don't believe it is optimal.

I suggest that we add a new action that is fired during the invite user process.

Attachments (3)

33008.1.diff (881 bytes) - added by ebinnion 9 years ago.
Adds invite_user action
33008.2.diff (791 bytes) - added by MikeHansenMe 9 years ago.
33008.diff (790 bytes) - added by DrewAPicture 9 years ago.
Fixed docs

Download all attachments as: .zip

Change History (10)

9 years ago

Adds invite_user action

#1 @johnbillion
9 years ago

  • Focuses multisite added
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from trunk to 3.0

#2 @dd32
9 years ago

In the proposed patch, I think the current_user parameter can be skipped.. Any hooked functions can simply grab the logged in users details if they need that detail.

#3 @wonderboymusic
9 years ago

  • Keywords needs-refresh added
  • Milestone changed from Future Release to 4.4

9 years ago

#4 @MikeHansenMe
9 years ago

  • Keywords needs-refresh removed

#5 @wonderboymusic
9 years ago

  • Keywords commit added
  • Owner set to DrewAPicture
  • Status changed from new to reviewing

9 years ago

Fixed docs

#6 @DrewAPicture
9 years ago

  • Owner changed from DrewAPicture to wonderboymusic

33008.diff fixes the docs formatting and adjusts the summary to more closely explain the point of firing.

#7 @SergeyBiryukov
9 years ago

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

In 33732:

Multisite: Add 'invite_user' action that fires immediately after a user is invited to join a site, but before the notification is sent.

props ebinnion, MikeHansenMe, DrewAPicture.
fixes #33008.

Note: See TracTickets for help on using tickets.