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_6933', 10, 2 );
function filter_function_name_6933( $preview_link, $post ){
	// filter...

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

Notes

  • 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 1254
return apply_filters( 'preview_post_link', $preview_link, $post );

Where the hook is used (in WP core)

Does not used.