Post Revisions Endpoint – not including post meta
-
Hi I’m trying to use the WP-REST API plugin and have a client able to basic auth to access post revisions, but I’ve run into a few problems:
- The content hasn’t been run through the content filters (particularly, the one that takes shortcodes and transforms them ie
do_shortcode
) - All of the custom
post_meta
I’ve added to my endpoints isn’t in the revisions endpoint and I really need access to it without having to publish the posts (currently/post/[post_id]/revisions
only returns author, date, guid, id, modified, parent, slug, title, content, excerpt, and _links)
Basically I need this in order to hijack the preview button to have access to the data externally, which requires both the
post
and thepost_meta
info, but without publishing the changes necessarily.Many thanks for any help in solving this!
- The content hasn’t been run through the content filters (particularly, the one that takes shortcodes and transforms them ie
- The topic ‘Post Revisions Endpoint – not including post meta’ is closed to new replies.