Yoast\WP\SEO\Schema_Aggregator\Application

Aggregate_Site_Schema_Map_Command{} │ Yoast 1.0

Class that represents the command to aggregate site schema map.

Хуков нет.

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

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

Методы

  1. public __construct( array $post_types )
  2. public get_post_types()

Код Aggregate_Site_Schema_Map_Command{} Yoast 28.9

class Aggregate_Site_Schema_Map_Command {

	/**
	 * The post types to include in the schema map.
	 *
	 * @var array<string>
	 */
	private $post_types;

	/**
	 * The constructor.
	 *
	 * @param array<string> $post_types The post types to include in the schema map.
	 */
	public function __construct( array $post_types ) {
		$this->post_types = $post_types;
	}

	/**
	 * Gets the post types to include in the schema map.
	 *
	 * @return array<string> The post types.
	 */
	public function get_post_types(): array {
		return $this->post_types;
	}
}