Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: get_userdata() | Retrieve user info by user ID. |
Retrieve user data and filter it.
(int) (Required) User ID.
File: wp-admin/includes/user.php
function get_user_to_edit( $user_id ) { $user = get_userdata( $user_id ); if ( $user ) { $user->filter = 'edit'; } return $user; }
Version | Description |
---|---|
2.0.5 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_user_to_edit