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:

Description

Fires actions after a post, its terms and meta data has been saved.

Related Functions

wp_insert_post, wp_insert_site, wp_get_single_post, wp_trash_post, wp_insert_term

Top Google Results

User discussions

wpseek mobile