wp_after_insert_post

wp_after_insert_post

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('wp_after_insert_post') is found 1 times:

  • /wp-includes/post.php line 5781
    	 * @param bool         $update      Whether this is an existing post being updated.
    	 * @param null|WP_Post $post_before Null for new posts, the WP_Post object prior
    	 *                                  to the update for updated posts.
    	 */
    	do_action( 'wp_after_insert_post', $post_id, $post, $update, $post_before );
    }
    
    //
    // Comment, trackback, and pingback functions.
    //
    
    

See this hook used in plugins: