Function: wp_set_all_user_settings

wp_set_all_user_settings( array $user_settings )

Private. Set all user interface settings.

Shortcut: wsaus

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

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 informed of new chapter releases, important WordPress API updates and more.