_show_post_preview
Filters the latest content for preview from the post autosave.
Description
_show_post_preview();
Usage
if ( !function_exists( '_show_post_preview' ) ) { require_once ABSPATH . WPINC . '/revision.php'; } // NOTICE! Understand what this does before running. $result = _show_post_preview();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/revision.php
- function _show_post_preview() {
- if ( isset($_GET['preview_id']) && isset($_GET['preview_nonce']) ) {
- $id = (int) $_GET['preview_id'];
- if ( false === wp_verify_nonce( $_GET['preview_nonce'], 'post_preview_' . $id ) )
- }
- }