Tag Info

Hot answers tagged


Below I've included two hooks you could use. There may be better hooks depending on what you're trying to accomplish exactly but this is what you've asked for. At the bottom I've listed some helpful resources: Publish Post Hook http://codex.wordpress.org/Plugin_API/Action_Reference/publish_post function published_post( $ID, $post ) { if( ...


Funny, I found this whilst searching for the same question over three years later. I thought I'd answer this incase I find it again in another three years... Take a look at the docs here The action you need is: {status}_{post_type} So for an event post type: function pendingPost($post) { // do something... } add_action('pending_event', ...

Only top voted, non community-wiki answers of a minimum length are eligible