clean_user_cache action-hook . WP 4.4.0
Fires immediately after the given user's cache is cleaned.
Usage
add_action( 'clean_user_cache', 'action_function_name_5597', 10, 2 ); function action_function_name_5597( $user_id, $user ){ // action... }
- $user_id(int)
- User ID.
- $user(WP_User)
- User object.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
clean_user_cache
wp-includes/user.php 1586
do_action( 'clean_user_cache', $user->ID, $user );