Action hook after post insertion processing possible?
-
Hello Esteban,
to let 3rd-party functions work after a post was inserted by your plugin: what about to add an action hook?
I think a good place for the hook can be in
wpematico_campaign_fetch::processItem()directly after the call ofwpematico_campaign_fetch::postProcessItem().To let 3rd-party applications take effect on the recently inserted post at least the post ID, and if possible the post object (as returned by
get_post( $post_id ), are given as parameters. It is aquivalent to the'save_post'hook ofwp_insert_post()and fired after all assignments of categories etc. are applied.The background is a recent request of an user of my plugin wishing to let it work with your plugin. Your response is appreciated.
The topic ‘Action hook after post insertion processing possible?’ is closed to new replies.