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.


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

	return $data;
An array of slashed post data.
An array of sanitized, but otherwise unmodified post data.

Where the hook is called

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

Where the hook is used (in WP core)

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