wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_after_insert_post › WordPress Action Hooks

Since5.6.0
Deprecatedn/a
do_action( 'wp_after_insert_post', $post_id, $post, $update, $post_before )
Parameters: (4)
  • () post_id Post ID.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () update Whether this is an existing post being updated.
    Required: Yes
  • () post_before Null for new posts, the WP_Post object prior to the update for updated posts.
    Required: Yes
Defined at:
Codex:

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





Source

do_action( 'wp_after_insert_post', $post_id, $post, $update, $post_before );