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
-
An array of slashed, sanitized, and processed post data.
- $postarr
-
An array of sanitized (and slashed) but otherwise unmodified post data.
- $unsanitized_postarr
-
An array of slashed yet *unsanitized* and unprocessed post data as originally passed to wp_insert_post().
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
WP-4.9.14 | $unsanitized_postarr argument added. |
WP-2.7.0 | Introduced. |