Action hook 'wp_insert_post'

in WP Core File wp-includes/post.php at line 4902

Description

Fires once a post has been saved.

Occurrences

Filename Line Number
wp-includes/post.php 4902
wp-includes/post.php 5068
wp-includes/class-wp-customize-manager.php 3121

Parameters

Type Name Description
int $post_id Post ID.
WP_Post $post Post object.
bool $update Whether this is an existing post being updated.

PHP Doc

/**
	 * Fires once a post has been saved.
	 *
	 * @since 2.0.0
	 *
	 * @param int     $post_id Post ID.
	 * @param WP_Post $post    Post object.
	 * @param bool    $update  Whether this is an existing post being updated.
	 */