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.


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.
Post object.
Whether this is an existing post being updated.
Null for new posts, the WP_Post object prior to the update for updated posts.


Since 5.6.0 Introduced.

Where the hook is called

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.