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.2

do_action('wp_after_insert_post') is found 1 times:

  • /wp-includes/post.php line 5781
    5777
    5778
    5779
    5780
    5781
    5782
    5783
    5784
    5785
    5786
         * @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: