[wp-trac] [WordPress Trac] #10716: New hook for user role change
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 7 06:35:35 UTC 2009
#10716: New hook for user role change
-----------------------------+----------------------------------------------
Reporter: usermrpapa | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: Role/Capability | Version: 2.8.4
Severity: normal | Keywords: has-patch
-----------------------------+----------------------------------------------
Comment(by jamescollins):
I have attached an patch that is an alternative to {{{roleaction.patch}}}.
My patch runs the action as part of the {{{WP_User::set_role()}}}
function, which I think is a better place.
The action also passes the user ID and new role name as part of the
action.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10716#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list