WPSEO_Taxonomy_Meta::set_values()public staticYoast 1.0

Saving the values for the given term_id.

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

Хуков нет.

Возвращает

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

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

$result = WPSEO_Taxonomy_Meta::set_values( $term_id, $taxonomy, $meta_values );
$term_id(int) (обязательный)
ID of the term to save data for.
$taxonomy(строка) (обязательный)
The taxonomy the term belongs to.
$meta_values(массив) (обязательный)
The values that will be saved.

Код WPSEO_Taxonomy_Meta::set_values() Yoast 22.4

public static function set_values( $term_id, $taxonomy, array $meta_values ) {
	/* Validate the post values */
	$old   = self::get_term_meta( $term_id, $taxonomy );
	$clean = self::validate_term_meta_data( $meta_values, $old );

	self::save_clean_values( $term_id, $taxonomy, $clean );
}