函数原型
get_user_option( string $option, int $user, string $deprecated = ” ): mixed
函数描述
Retrieves user option that can be either per Site or per Network.
是否弃用
未弃用
函数参数
-
$option
string
Required - User option name.
-
$user
int
Optional - User ID.
-
$deprecated
string
Optional - Use get_option() to check for an option in the options table.
Default:
''
函数返回值
mixed User option value on success, false on failure.
函数位置
File: wp-includes/user.php.
函数源码
get_user_option( $option, $user );源码链接
变更日志
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |

