Filter hook 'wp_insert_post_data'

in WP Core File wp-includes/post.php at line 4592

Description

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

Occurrences

Filename Line Number
wp-includes/post.php 4592

Parameters

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 originally passed to wp_insert_post().
bool $update Whether this is an existing post being updated.

PHP Doc

/**
		 * 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.
		 */