钩子是一样的save_post
只需确保是您的帖子类型ex:
add_action(\'save_post\',\'save_post_callback\');
function save_post_callback($post_id){
global $post;
if ($post->post_type != \'MY_CUSTOM_POST_TYPE_NAME\'){
return;
}
//if you get here then it\'s your post type so do your thing....
}