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{}
Хуков нет.
Возвращает
Массив<Массив<Строку,Строку|int|true|false|Массив>>. 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 27.7
public function collect( int $post_id ): array;