Uses
Uses | Description |
---|---|
wp-includes/link-template.php: get_avatar_url() | Retrieves the avatar URL. |
wp-includes/pluggable.php: get_userdata() | Retrieve user info by user ID. |
Get lock user data.
(int) (Required) User ID.
(array|null) User data formatted for client.
File: wp-includes/class-wp-customize-manager.php
protected function get_lock_user_data( $user_id ) { if ( ! $user_id ) { return null; } $lock_user = get_userdata( $user_id ); if ( ! $lock_user ) { return null; } return array( 'id' => $lock_user->ID, 'name' => $lock_user->display_name, 'avatar' => get_avatar_url( $lock_user->ID, array( 'size' => 128 ) ), ); }
Version | Description |
---|---|
4.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/get_lock_user_data