On this page
apply_filters( 'preview_post_link', string $preview_link, WP_Post $post )
Filters the URL used for a post preview.
Parameters
$preview_linkstring-
URL used for the post preview.
$postWP_Post-
Post object.
Source
File: wp-includes/link-template.php. View all references
return apply_filters( 'preview_post_link', $preview_link, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_preview_post_link() wp-includes/link-template.php | Retrieves the URL used for the post preview. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/preview_post_link