/** This action is documented in wp-includes/post.php */
do_action( "save_post_{
$post->post_type
}",
$post->ID,
$post, true
);
/** This action is documented in wp-includes/post.php */
do_action( 'save_post',
$post->ID,
$post, true
);
/** This action is documented in wp-includes/post.php */
do_action( 'wp_insert_post',
$post->ID,
$post, true
);
wp_after_insert_post( get_post( $post_id ), true,
$post );
wp_trash_post_comments( $post_id );
/** This action is documented in wp-includes/post.php */
do_action( 'trashed_post',
$post_id );
return $post;
} /**
* Handles request to trash a changeset.
*
* @since 4.9.0
*/