WordPress开发者和主题制作者的搜索引擎



get_user_option_{$option} ›

Since2.5.0
已弃用n/a
apply_filters( "get_user_option_{$option}", $result, $option, $user )
参数: (3)
  • (mixed) $result Value for the user's option.
    Required: Yes
  • (string) $option Name of the option being retrieved.
    Required: Yes
  • (WP_User) $user WP_User object of the user whose option is being retrieved.
    Required: Yes
定义在:
文档:

Filters a specific user option value.

The dynamic portion of the hook name, $option, refers to the user option name.





源码

return apply_filters( "get_user_option_{$option}", $result, $option, $user );