apply_filters( 'wp_insert_post_data', array $data, array $postarr, array $unsanitized_postarr )

Filters slashed post data just before it is inserted into the database.


Parameters

$data

(array) An array of slashed, sanitized, and processed post data.

$postarr

(array) An array of sanitized (and slashed) but otherwise unmodified post data.

$unsanitized_postarr

(array) An array of slashed yet *unsanitized* and unprocessed post data as originally passed to wp_insert_post().


Source

File: wp-includes/post.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.9.14 $unsanitized_postarr argument added.
WP-2.7.0 Introduced.