Yoast\WP\SEO\Generators\Schema\Third_Party

Events_Calendar_Schema{}Yoast 1.0

Устарела с версии 19.12. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

A class to handle textdomains and other Yoast Event Schema related logic..

Хуков нет.

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

$Events_Calendar_Schema = new Events_Calendar_Schema();
// use class methods

Методы

  1. public generate()
  2. public is_needed()

Список изменений

Устарела с 19.12

Код Events_Calendar_Schema{} Yoast 21.1

class Events_Calendar_Schema extends Abstract_Schema_Piece {

	/**
	 * The meta tags context.
	 *
	 * @var Meta_Tags_Context
	 */
	public $context;

	/**
	 * The helpers surface
	 *
	 * @var Helpers_Surface
	 */
	public $helpers;

	/**
	 * Determines whether or not a piece should be added to the graph.
	 *
	 * @deprecated 19.12
	 * @codeCoverageIgnore
	 *
	 * @return bool
	 */
	public function is_needed() {
		\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
		return false;
	}

	/**
	 * Adds our Event piece of the graph.
	 * Partially lifted from the 'Tribe__JSON_LD__Abstract' class.
	 *
	 * @see        https://docs.theeventscalendar.com/reference/classes/tribe__json_ld__abstract/
	 *
	 * @deprecated 19.12
	 * @codeCoverageIgnore
	 *
	 * @return array Event Schema markup
	 */
	public function generate() {
		\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
		return [];
	}
}