do_action( 'wp_insert_post', int $post_id , WP_Post $post , bool $update )
Fires once a post has been saved.
Parameters
- $post_id
-
(int) Post ID.
- $post
-
(WP_Post) Post object.
- $update
-
(bool) Whether this is an existing post being updated.
Source
File: wp-includes/post.php
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |