wp_insert_post_data

wp_insert_post_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('wp_insert_post_data') is found 1 times:

  • /wp-includes/post.php line 4761
    4757
    4758
    4759
    4760
    4761
    4762
    4763
    4764
    4765
    4766
    4767
         * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as
         *                                   originally passed to wp_insert_post().
         * @param bool  $update              Whether this is an existing post being updated.
         */
        $data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr, $update );
    }
     
    $data  = wp_unslash( $data );
    $where = array( 'ID' => $post_id );
     
    if ( $update ) {

See this hook used in plugins: