do_action( 'wp_insert_post', int $post_ID, WP_Post $post, bool $update )

Fires once a post has been saved.


Parameters

$post_ID

Post ID.

$post

Post object.

$update

Whether this is an existing post being updated or not.


Source

File: wp-includes/post.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.0.0 Introduced.