New answers tagged


If you want to trigger some action when a post is published or edited, you can have a look at the save_post and edit_post actions. You could easily hook in the edition process, modify your post data if needed, and save it again. function myplugin_save_post($post_id, $post) { // $post contains the post itself // so you can check the submitted data and ...

Top 50 recent answers are included