Title::set_posts( array|null $posts = null )

Sets the posts this object should reference to build the title.

We build some title components with notion of what events we found for a View. Here we set them.


Parameters

$posts

(array|null) (Optional) An array of posts matching the context query, null will unset it causing the object to use the posts found by the global $wp_query object.

Default value: null


Top ↑

Return

($this) For chaining.


Top ↑

Source

File: src/Tribe/Views/V2/Template/Title.php

	public function set_posts( array $posts = null ) {
		$this->posts = $posts;

		return $this;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.10 Introduced.