A WordPress-centric search engine for devs and theme authors



remove_user_role ›

Since4.3.0
Deprecatedn/a
do_action( 'remove_user_role', $this->ID, $role )
Parameters: (2)
  • (int) $user_id The user ID.
    Required: Yes
  • (string) $role The removed role.
    Required: Yes
Defined at:
Codex:

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





Source

do_action( 'remove_user_role', $this->ID, $role );