_get_additional_user_keys
函数
_get_additional_user_keys ( $user )
- Access
- Private
- 参数
-
-
(WP_User)
$user
WP_User instance.- Required: 是
-
(WP_User)
- 返回值
-
- (string[]) List of user keys to be populated in wp_update_user().
- 定义位置
-
-
wp-includes/user.php
, line 2762
-
wp-includes/user.php
- 引入
- 3.3.0
- 弃用
- –
Returns a list of meta keys to be (maybe) populated in wp_update_user().
The list of keys returned via this function are dependent on the presence
of those keys in the user meta data to be set.
function _get_additional_user_keys( $user ) { $keys = array( 'first_name', 'last_name', 'nickname', 'description', 'rich_editing', 'syntax_highlighting', 'comment_shortcuts', 'admin_color', 'use_ssl', 'show_admin_bar_front', 'locale' ); return array_merge( $keys, array_keys( wp_get_user_contact_methods( $user ) ) ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。