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

do_action('wp_insert_post_data') is found 1 times:

  • /wp-includes/post.php line 4761
    		 * @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: