remove_user_role хук-событие . WP 4.3.0
Fires immediately after a role as been removed from a user.
Использование
add_action( 'remove_user_role', 'action_function_name_3364', 10, 2 ); function action_function_name_3364( $user_id, $role ){ // action... }
- $user_id(число)
- The user ID.
- $role(строка)
- The removed role.
Список изменений
С версии 4.3.0 | Введена. |
Где вызывается хук
remove_user_role
wp-includes/class-wp-user.php 581
do_action( 'remove_user_role', $this->ID, $role );