do_action( 'wp_after_insert_post', int $post_id , WP_Post $post , bool $update , null|WP_Post $post_before )
Fires once a post, its terms and meta data has been saved.
Parameters
- $post_id
-
Post ID.
- $post
-
Post object.
- $update
-
Whether this is an existing post being updated.
- $post_before
-
Null for new posts, the WP_Post object prior to the update for updated posts.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |