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