apply_filters( ‘preview_post_link’, string $preview_link, WP_Post $post )

In this article

Filters the URL used for a post preview.

Parameters

$preview_linkstring
URL used for the post preview.
$postWP_Post
Post object.

Source

return apply_filters( 'preview_post_link', $preview_link, $post );

Changelog

VersionDescription
4.0.0Added the $post parameter.
2.0.5Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.