Get user all meta data
-
Hello, everyone.
There is a way to get ALL user meta data? Even custom meta keys and values.
I’m using this snippet:
function playWithMeta($postray, $postdat, $context){
$morestuff = get_post_meta($postdat[‘ID’]);
//don’t do this, you will probably be duplicating a bunch of stuff
return array_merge($postray, $morestuff);
}
add_filter( ‘json_prepare_post’, ‘playWithMeta’,12, 3 );But I think this is only por “/posts”. I’ll need the same but for users.
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get user all meta data’ is closed to new replies.