Yoast\WP\SEO\Abilities\Infrastructure

Term_SEO_Meta_Writer::save_meta │ protected │ Yoast 1.0

Validates and saves the full term meta, through the same validation as the term editor.

Метод класса: Term_SEO_Meta_Writer{}

Хуков нет.

Возвращает

void. Ничего (null).

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->save_meta( $term_id, $taxonomy, $meta ): void;
$term_id(int) (обязательный)
The term ID.
$taxonomy(строка) (обязательный)
The taxonomy of the term.
$meta(array<string, string>) (обязательный)
The full term meta.

Код Term_SEO_Meta_Writer::save_meta() Yoast 28.9

protected function save_meta( int $term_id, string $taxonomy, array $meta ): void {
	WPSEO_Taxonomy_Meta::set_values( $term_id, $taxonomy, $meta );
}