Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Expose $post_id inside 'json_prepare_meta' filter in WP_JSON_Posts #67
I need to alter the output of some custom fields in the json object.
The problem that in order to do so I figured out I really need to know $post_id
It would be nice if besides $custom_fields one could access also to $post_id while filtering the post meta, just like one can while filtering prepare_post function.