Add set_user_role action hook. props jamescollins, usermrpapa. fixes #10716
git-svn-id: https://develop.svn.wordpress.org/trunk@12028 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
05458bb414
commit
529e336c1e
@ -605,6 +605,7 @@ class WP_User {
|
||||
update_usermeta( $this->ID, $this->cap_key, $this->caps );
|
||||
$this->get_role_caps();
|
||||
$this->update_user_level_from_caps();
|
||||
do_action( 'set_user_role', $this->ID, $role );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user