WordPress at a glance
filter is not described

wp_insert_post_data filter-hook . WP 2.7.0

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

Usage

add_filter( 'wp_insert_post_data', 'filter_function_name_9971', 10, 2 );
function filter_function_name_9971( $data, $postarr ){
	// filter...

	return $data;
}
$data(array)
An array of slashed post data.
$postarr(array)
An array of sanitized, but otherwise unmodified post data.

Where the hook is called

wp_insert_post()
wp-includes/post.php 3523
$data = apply_filters( 'wp_insert_post_data', $data, $postarr );

Where the hook is used (in WP core)

wp-includes/default-filters.php 78
add_filter( 'wp_insert_post_data', '_wp_customize_changeset_filter_insert_post_data', 10, 2 );
wp-admin/includes/ms-admin-filters.php 29
add_filter( 'wp_insert_post_data', 'avoid_blog_page_permalink_collision', 10, 2 );