Function: clean_user_cache

clean_user_cache( WP_User | integer $user )

Clean all user caches

Parameters

Name Type(s) Default Value Description
$user WP_User | integer

User object or ID to be cleaned from the cache

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.