WPSEO_Taxonomy_Meta::get_term_tax_meta()
Getting the taxonomy meta for the given term_id and taxonomy.
Метод класса: WPSEO_Taxonomy_Meta{}
Хуков нет.
Возвращает
Массив
.
Использование
$result = WPSEO_Taxonomy_Meta::get_term_tax_meta( $term_id, $taxonomy );
- $term_id(int) (обязательный)
- The id of the term.
- $taxonomy(строка) (обязательный)
- Name of the taxonomy to which the term is attached.
Код WPSEO_Taxonomy_Meta::get_term_tax_meta() WPSEO Taxonomy Meta::get term tax meta Yoast 24.9
private static function get_term_tax_meta( $term_id, $taxonomy ) { $tax_meta = self::get_tax_meta(); /* If we have data for the term, merge with defaults for complete array, otherwise set defaults. */ if ( isset( $tax_meta[ $taxonomy ][ $term_id ] ) ) { return array_merge( self::$defaults_per_term, $tax_meta[ $taxonomy ][ $term_id ] ); } return self::$defaults_per_term; }