Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

update_user_option()

3 tags 1 category

update_user_option() — Updates user option with global blog capability. User options are just like user metadata except that they have support for global blog options. If the ‘is_global’ parameter is false, which it is by default, it will prepend the WordPress table prefix to the option name. Deletes the user option if $newvalue is empty.

Inputs: $user_id (int): User ID. $option_name (string): User option name. $newvalue (mixed): User option value. $is_global (bool): Optional. Whether option name is global or blog specific. Default false (blog specific).

Returns int|bool: User meta ID if the option didn’t exist, true on successful update, false on failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…