Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/post.php | apply_filters | 4418 | /** * Filters slashed post data just before it is inserted into the database. * * @since 2.7.0 * @since 5.4.1 The `$unsanitized_postarr` parameter was added. * @since 6.0.0 The `$update` parameter was added. * * @param array $data An array of slashed, sanitized, and processed post data. * @param array $postarr An array of sanitized (and slashed) but otherwise unmodified post data. * @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. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array | $data | An array of slashed, sanitized, and processed post data. |
array | $postarr | An array of sanitized (and slashed) but otherwise unmodified post data. |
array | $unsanitized_postarr | An array of slashed yet *unsanitized* and unprocessed post data as |
bool | $update | Whether this is an existing post being updated. |