From 0a665944e8bd874b923093ff7a3df21255c6bb19 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 14 Oct 2009 02:30:51 +0000 Subject: [PATCH] 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 --- wp-includes/capabilities.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 10ac24000d..c461e926fc 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -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 ); } /**