ckrudelux Posted February 24, 2012 Share Posted February 24, 2012 Trying to add a function then post is published I got it to work with "draft_to_publish" but "new_to_publish" won't or I just don't trigger it.. If I post a new post waiting for it to save a draft before I publish it works but if I publish right away it don't. This is there I thought "new_to_publish" would trigger.. function fc_sharePost($post){print_r($post);echo 'success'; exit;} add_action('new_to_publish', 'fc_sharePost');add_action('draft_to_publish', 'fc_sharePost');add_action('pending_to_publish', 'fc_sharePost'); http://codex.wordpress.org/Post_Status_Transitions Link to comment Share on other sites More sharing options...
ckrudelux Posted February 26, 2012 Author Share Posted February 26, 2012 did the trick but I don't know what new_to_publish is triggered by.auto-draft_to_publish Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.