Yoast\WP\SEO\Bulk_Editor\Domain\Posts
Posts_List::to_array
Parses the post list to the expected key value representation.
Метод класса: Posts_List{}
Хуков нет.
Возвращает
array<array<string,. int|string>> The post list presented as the expected key value representation.
Использование
$Posts_List = new Posts_List(); $Posts_List->to_array(): array;
Код Posts_List::to_array() Posts List::to array Yoast 28.9
public function to_array(): array {
return \array_map(
static function ( Post $post ) {
return $post->to_array();
},
$this->posts,
);
}