Title::set_posts( array|null $posts = null )
Sets the posts this object should reference to build the title.
Contents
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,
nullwill unset it causing the object to use the posts found by the global$wp_queryobject.Default value: null
Return
($this) For chaining.
Source
File: src/Tribe/Views/V2/Template/Title.php
public function set_posts( array $posts = null ) {
$this->posts = $posts;
return $this;
}
Changelog
| Version | Description |
|---|---|
| 4.9.10 | Introduced. |