WordPress at Your Fingertips
action is not described

wp_after_insert_post action-hook . WP 5.6.0

Fires once a post, its terms and meta data has been saved.

Usage

add_action( 'wp_after_insert_post', 'action_function_name_1578', 10, 4 );
function action_function_name_1578( $post_id, $post, $update, $post_before ){
	// action...
}
$post_id(int)
Post ID.
$post(WP_Post)
Post object.
$update(true|false)
Whether this is an existing post being updated.
$post_before(null|WP_Post)
Null for new posts, the WP_Post object prior to the update for updated posts.

Changelog

Since 5.6.0 Introduced.

Where the hook is called

wp_after_insert_post()
wp_after_insert_post
wp-includes/post.php 5180
do_action( 'wp_after_insert_post', $post_id, $post, $update, $post_before );

Where in WP core the hook is used WordPress

Usage not found.