Function: update_user_caches

update_user_caches( WP_User $user )

Update all user caches

Parameters

Name Type(s) Default Value Description
$user WP_User

User object to be cached

Returns

boolean | null

Returns false on failure.

WordPress Developer Newsletter

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