Yoast\WP\SEO\Generators\Schema

Abstract_Schema_Piece{}Yoast 1.0

Class Abstract_Schema_Piece.

Хуков нет.

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

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

Методы

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

Код Abstract_Schema_Piece{} Yoast 19.5.1

abstract class Abstract_Schema_Piece {

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

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

	/**
	 * Generates the schema piece.
	 *
	 * @return mixed
	 */
	abstract public function generate();

	/**
	 * Determines whether the schema piece is needed.
	 *
	 * @return bool
	 */
	abstract public function is_needed();
}