Function: wp_set_all_user_settings

wp_set_all_user_settings( array $user_settings )

Private. Set all user interface settings.

Parameters

Name Type(s) Default Value Description
$user_settings array

User settings.

Returns

boolean | null

False if the current user can't be found, null if the current user is not a super admin or a member of the site, otherwise true.

WordPress Developer Newsletter

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