do_action( 'remove_user_role', int $user_id, string $role )

Fires immediately after a role as been removed from a user.

Parameters Parameters


(int) The user ID.


(string) The removed role.

Top ↑

Source Source

File: wp-includes/class-wp-user.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.