the_preview WordPress Filter Hook
The the_preview hook is used to display the content of a post before it is published. This can be useful for previewing changes before they are made live, or for displaying draft content to logged-in users.
apply_filters_ref_array( 'the_preview', WP_Post $post_preview , WP_Query $query ) #
Filters the single post for preview mode.
Parameters
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |