WordPress at a glance
filter is not described

redirect_post_location filter-hook . WP 2.9.0

Filters the post redirect destination URL.


add_filter( 'redirect_post_location', 'filter_function_name_2004', 10, 2 );
function filter_function_name_2004( $location, $post_id ){
	// filter...

	return $location;
The destination URL.
The post ID.

Where the hook is called

wp-admin/includes/post.php 1896
wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id ) );

Where the hook is used (in WP core)

Does not used.