remove_user_role, $this->ID, $role

remove_user_role, $this->ID, $role

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: 7.0.3

do_action('remove_user_role, $this->ID, $role') is found 1 times:

  • /wp-includes/class-wp-user.php line 603
    		 *
    		 * @param int    $user_id The user ID.
    		 * @param string $role    The removed role.
    		 */
    		do_action( 'remove_user_role', $this->ID, $role );
    	}
    
    	/**
    	 * Sets the role of the user.
    	 *
    	 * This will remove the previous roles of the user and assign the user the