remove_user_from_blog
Fires before a user is removed from a site.
Использование
add_action( 'remove_user_from_blog', 'wp_kama_remove_user_from_blog_action', 10, 3 ); /** * Function for `remove_user_from_blog` action-hook. * * @param int $user_id ID of the user being removed. * @param int $blog_id ID of the blog the user is being removed from. * @param int $reassign ID of the user to whom to reassign posts. * * @return void */ function wp_kama_remove_user_from_blog_action( $user_id, $blog_id, $reassign ){ // action... }
- $user_id(int)
- ID of the user being removed.
- $blog_id(int)
- ID of the blog the user is being removed from.
- $reassign(int)
- 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 246
do_action( 'remove_user_from_blog', $user_id, $blog_id, $reassign );