Function: wp_user_settings

wp_user_settings( )

Saves and restores user interface settings stored in a cookie.

Shortcut: wus

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.

Checks if the current user-settings cookie is updated and stores it. When no cookie exists (different browser used), adds the last saved cookie restoring the settings.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.