wp_after_insert_post ( $post, $update, $post_before )
- (int|WP_Post) post The post ID or object that has been saved.
- (bool) update Whether this is an existing post being updated.
- (null|WP_Post) post_before Null for new posts, the WP_Post object prior to the update for updated posts.
- Introduced in WordPress: 5.6.0
- Deprecated in WordPress: —
Fires actions after a post, its terms and meta data has been saved.