Omg thank you so much, that’s relief ??
So how can i use wordpress logic to make this works ?
I did this on default REST API and it works so good!
register_meta(
'user',
'playtime',
array(
'type' => 'object',
'single' => false,
'show_in_rest' => array(
'schema' => $this->user_playtime_meta_schema(),
),
)
);
What’s your suggestion for doing in custom endpoint?
-
This reply was modified 3 years, 11 months ago by b3hr4d.