A WordPress-centric search engine for devs and theme authors



the_preview ›

Since2.7.0
Deprecatedn/a
apply_filters_ref_array( 'the_preview', array( $this->posts[0], &$this )
Parameters: (2)
  • (WP_Post) $post_preview The Post object.
    Required: Yes
  • (WP_Query) $this The WP_Query instance (passed by reference).
    Required: Yes
Defined at:
Codex:

Filters the single post for preview mode.





Source

$this->posts[0] = get_post( apply_filters_ref_array( 'the_preview', array( $this->posts[0], &$this ) ) );