wp_insert_post, $post_id, $post, $update

wp_insert_post, $post_id, $post, $update

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: 7.0.3

do_action('wp_insert_post, $post_id, $post, $update') is found 1 times:

  • /wp-includes/post.php line 5204
    	 * @param int     $post_id Post ID.
    	 * @param WP_Post $post    Post object.
    	 * @param bool    $update  Whether this is an existing post being updated.
    	 */
    	do_action( 'wp_insert_post', $post_id, $post, $update );
    
    	if ( $fire_after_hooks ) {
    		wp_after_insert_post( $post, $update, $post_before );
    	}
    
    	return $post_id;