function on_post_scheduled( $post_id, $post ) {
// If this is just a revision, don\'t do anything.
if ( wp_is_post_revision( $post_id ) )
return;
// If this is a \'post\' post and post status is future.
if ( (\'post\' == $post->post_type) && (\'future\' == $post->post_status)) {
// do the thing zhu li!
wp_die(\'<pre>\'.print_r($post,true).\'</pre>\');
}
}
add_action( \'save_post\', \'on_post_scheduled\', 10, 2 );
最好像这样在save\\u post上添加操作。。。只需检查帖子类型和帖子状态。。。