Yoast\WP\SEO\Schema_Aggregator\Domain
External_Schema_Piece_Repository_Interface::collect
Collects external schema pieces for the given post.
Метод класса: External_Schema_Piece_Repository_Interface{}
Хуков нет.
Возвращает
array<array<string,string|int|bool|array>>. The schema pieces (always an array, may be empty).
Использование
$External_Schema_Piece_Repository_Interface = new External_Schema_Piece_Repository_Interface(); $External_Schema_Piece_Repository_Interface->collect( $post_id ): array;
- $post_id(int) (обязательный)
- The post ID.
Код External_Schema_Piece_Repository_Interface::collect() External Schema Piece Repository Interface::collect Yoast 28.9
public function collect( int $post_id ): array;