Core Function
View Source on Trac ↗ get_user_option()
get_user_option( mixed $option, mixed $user = 0, mixed $deprecated = '' ) Retrieves user option that can be either per Site or per Network.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $option string | User option name. Required |
| $user int | Optional. User ID. |
| $deprecated string | Use get_option() to check for an option in the options table. |
Return Value
(mixed)
User option value on success, false on failure.
Function Information
Since Version
2.0.0
Source File
wp-includes/user.php
Advertisement