apply_filters( 'preview_post_link', string $preview_link, WP_Post $post )
Filters the URL used for a post preview.
Parameters
- $preview_link
-
(string) URL used for the post preview.
- $post
-
(WP_Post) Post object.
Source
Changelog
Version | Description |
---|---|
4.0.0 | Added the $post parameter. |
2.0.5 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/preview_post_link