Title::get_posts()

Returns the post the title should use to build some title fragments.


Return

(array) An array of injected posts, or the globally found posts.


Top ↑

Source

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

	public function get_posts() {
		$posts = $this->posts;

		if ( null === $this->posts ) {
			global $wp_query;
			$posts = null !== $wp_query->posts ? $wp_query->posts : $wp_query->get_posts();
		}

		return $posts;
	}

Top ↑

Changelog

Changelog
Version Description
6.3.6 Scope changed to public to make it more testable.
4.9.10 Introduced.