Is there anyway to get the same details as /users/me api command but in WP backend?
I have backend function that would get the user meta details
custom api /user_meta
public myFunc( $userId ) {
$user_meta = get_user_meta( $userId );
return $user_meta
}
The user meta field has an ACF option that is formatted strange
"place": [
"a:1:{i:0;s:12:\"Earth\";}"
],
But when using the /users/me API call, the return is
/users/me default wp api
"place": [
"Earth"
],
Although I could use a conjunction of both apis to get the proper user meta details, it isn't ideal. Is there anyway of getting the /users/me api call in wordpress backend?