Be aware that the transition_post_status hook is not fired when post unpublishes
-
i found out the hard way that this plugin doesn’t use a wordpress function to update the post status, but does it directly via the database. this way hooks like transition_post_status are not fired when a post gets unpublished.
so better don’t use this plugin if you use hooks like these!
i would suggest to change the plugin to update the post status with wp_update_post() so the usual hooks and actions get fired as expected.
- The topic ‘Be aware that the transition_post_status hook is not fired when post unpublishes’ is closed to new replies.