Setting post_parent with the WordPress REST API

WordPress 4.9.4 does not support the post_parent attribute in the REST API, so I wrote a plugin that does.

Download here:

Someday, WordPress core will allow the manipulation of the post_parent attribute, and I look forward to deleting this plugin and this blog post when they become obsolete. Until then, I believe this implementation resembles how core will handle this.


Leave a Reply

Your email address will not be published. Required fields are marked *