remove_user_from_blog хук-событие . WP 3.0.0
Fires before a user is removed from a site.
Использование
add_action( 'remove_user_from_blog', 'action_function_name_9634', 10, 3 ); function action_function_name_9634( $user_id, $blog_id, $reassign ){ // action... }
- $user_id(число)
- ID of the user being removed.
- $blog_id(число)
- ID of the blog the user is being removed from.
- $reassign(число)
- ID of the user to whom to reassign posts.
Список изменений
С версии 3.0.0 | Введена. |
С версии 5.4.0 | Added the $reassign parameter. |
Где вызывается хук
remove_user_from_blog
wp-includes/ms-functions.php 261
do_action( 'remove_user_from_blog', $user_id, $blog_id, $reassign );