Private Access Private Access
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Summery Summery
Sets up the post object for preview based on the post autosave.
Syntax Syntax
Parameters Parameters
- $post
-
(Required)
Return Return
(WP_Post|false)
Source Source
File: wp-includes/revision.php
* @param int $num Number of revisions to store. * @param WP_Post $post Post object. */ return (int) apply_filters( 'wp_revisions_to_keep', $num, $post ); } /** * Sets up the post object for preview based on the post autosave. * * @since 2.7.0 * @access private * * @param WP_Post $post * @return WP_Post|false */ function _set_preview( $post ) { if ( ! is_object( $post ) ) { return $post; } $preview = wp_get_post_autosave( $post->ID );
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |