Yoast\WP\SEO\Dashboard\Domain\Taxonomies
Taxonomy::to_array
Parses the taxonomy to the expected key value representation.
Метод класса: Taxonomy{}
Хуков нет.
Возвращает
Массив<Строку,. array<string, string>> The taxonomy presented as the expected key value representation.
Использование
$Taxonomy = new Taxonomy(); $Taxonomy->to_array(): array;
Код Taxonomy::to_array() Taxonomy::to array Yoast 27.4
public function to_array(): array {
return [
'name' => $this->name,
'label' => $this->label,
'links' => [
'search' => $this->rest_url,
],
];
}