Add set_user_role action hook. props jamescollins, usermrpapa. fixes #10716

git-svn-id: http://svn.automattic.com/wordpress/trunk@12028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2009-10-14 02:30:51 +00:00
parent 18f11f1fbc
commit 0a665944e8
1 changed files with 1 additions and 0 deletions

View File

@ -605,6 +605,7 @@ class WP_User {
update_usermeta( $this->ID, $this->cap_key, $this->caps ); update_usermeta( $this->ID, $this->cap_key, $this->caps );
$this->get_role_caps(); $this->get_role_caps();
$this->update_user_level_from_caps(); $this->update_user_level_from_caps();
do_action( 'set_user_role', $this->ID, $role );
} }
/** /**