[wp-trac] [WordPress Trac] #39345: Request for hook after posts are completely updated via the rest API
WordPress Trac
noreply at wordpress.org
Tue Dec 20 18:52:51 UTC 2016
#39345: Request for hook after posts are completely updated via the rest API
-------------------------+------------------------------
Reporter: jazbek | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
-------------------------+------------------------------
Comment (by jazbek):
@jnylen0 awesome, thanks for the suggestions, either could work, and for
now I can move forward.
However, it does seem like there should be an action in create/update that
runs after the post and all fields are saved. It seems like that would be
more useful than an action that runs when the create/update is "half"
done.
I think it would be ideal if `wp_insert_post` and `rest_insert_$post_type`
were "parallel" so to speak, like they were previous to the 4.7 release,
or if that's not possible, it would be great if there were another rest
hook "parallel" to `wp_insert_post` for rest requests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39345#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list