wp_after_insert_post
wp_after_insert_post ( $post, $update, $post_before )
Parameters:- (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.
Defined at: - Introduced in WordPress: 5.6.0
- Deprecated in WordPress: —
Description
Fires actions after a post, its terms and meta data has been saved.