Update API

This commit is contained in:
Hoang Huu
2019-10-24 16:22:03 +07:00
parent f8b6371ee5
commit 5698bd280c
2 changed files with 60 additions and 1 deletions

View File

@@ -96,6 +96,7 @@ class Opalestate_API {
* @return array
*/
public function jwt_auth_token_before_dispatch( $data, $user ) {
$data['user_id'] = $user->data->ID;
$data['user_role'] = $user->roles;
$data['avatar'] = opalestate_get_user_meta( $user->data->ID, 'avatar' );