Uma área de pesquisa sobre o WordPress para devs e autores do tema



the_preview ›

Desde2.7.0
Obsoleton/a
apply_filters_ref_array( 'the_preview', array( $this->posts[0], &$this )
Parâmetros: (2)
  • (WP_Post) $post_preview The Post object.
    Required: Yes
  • (WP_Query) $this The WP_Query instance (passed by reference).
    Required: Yes
Definido em:
Codex:

Filters the single post for preview mode.





Fonte

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