WordPress at a glance
filter is not described

preview_post_link filter-hook . WP 2.0.5

Filters the URL used for a post preview.

Usage

add_filter( 'preview_post_link', 'filter_function_name_4540', 10, 2 );
function filter_function_name_4540( $preview_link, $post ){
	// filter...

	return $preview_link;
}
$preview_link(string)
URL used for the post preview.
$post(WP_Post)
Post object.

Changelog

Since 2.0.5 Introduced.
Since 4.0.0 Added the $post parameter.

Where the hook is called

get_preview_post_link()
preview_post_link
wp-includes/link-template.php 1324
return apply_filters( 'preview_post_link', $preview_link, $post );

Where the hook is used (in WP core)

Usage not found!