WordPress как на ладони
wordpress jino
фильтр не описан

the_preview хук-фильтр . WP 2.7.0

Filters the single post for preview mode.

Использование

add_filter( 'the_preview', 'filter_function_name_2230', 10, 2 );
function filter_function_name_2230( $post_preview, $this ){
	// filter...

	return $post_preview;
}
$post_preview(WP_Post)
The Post object.
$this(WP_Query)
The WP_Query instance (passed by reference).

Связи хука

Используется в: WP_Query::get_posts()

Остальные хуки из: WP_Query::get_posts():

Кусок кода с хуком

Фрагмент из: wp-includes/class-wp-query.php WP 4.9
...
					} else {
						$this->posts = array();
					}
				}
			}

			if ( $this->is_preview && $this->posts && current_user_can( $edit_cap, $this->posts[0]->ID ) ) {
				/**
				 * Filters the single post for preview mode.
				 *
				 * @since 2.7.0
				 *
				 * @param WP_Post  $post_preview  The Post object.
				 * @param WP_Query $this          The WP_Query instance (passed by reference).
				 */
				$this->posts[0] = get_post( apply_filters_ref_array( 'the_preview', array( $this->posts[0], &$this ) ) );
			}
		}

		// Put sticky posts at the top of the posts array
		$sticky_posts = get_option('sticky_posts');
		if ( $this->is_home && $page <= 1 && is_array($sticky_posts) && !empty($sticky_posts) && !$q['ignore_sticky_posts'] ) {
			$num_posts = count($this->posts);
			$sticky_offset = 0;
			// Loop over posts and relocate stickies to the front.
			for ( $i = 0; $i < $num_posts; $i++ ) {
				if ( in_array($this->posts[$i]->ID, $sticky_posts) ) {
					$sticky_post = $this->posts[$i];
					// Remove sticky from current position
					array_splice($this->posts, $i, 1);
					// Move to front, after other stickies
...