do_action( 'save_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-1.5.0 Introduced.