public static function get_taxonomy_field( $taxonomy_term, $field = '' ) {
		if ( is_a( $taxonomy_term, 'WP_Term' ) ) {
			return self::get_field( $taxonomy_term, $field );
		} elseif ( is_array( $taxonomy_term ) && count( $taxonomy_term ) >= 2 ) {
			return self::get_field( "{$taxonomy_term[0]}_{$taxonomy_term[1]}", $field );
		}
		throw new \Exception( '$taxonomy_term must be either a term object or an array of [$taxonomy, $term_id]' );
	}
public static function get_taxonomy_field( $taxonomy_term, $field = '' ) {
		if ( is_a( $taxonomy_term, 'WP_Term' ) ) {
			return self::get_field( $taxonomy_term, $field );
		} elseif ( is_array( $taxonomy_term ) && count( $taxonomy_term ) >= 2 ) {
			return self::get_field( "{$taxonomy_term[0]}_{$taxonomy_term[1]}", $field );
		}
		throw new \Exception( '$taxonomy_term must be either a term object or an array of [$taxonomy, $term_id]' );
	}
public static function get_taxonomy_field ( $ taxonomy_term , $ field = '' ) { if ( is_a ( $ taxonomy_term , 'WP_Term' ) ) { return self :: get_field ( $ taxonomy_term , $ field ) ; } elseif ( is_array ( $ taxonomy_term ) && count ( $ taxonomy_term ) >= 2 ) { return self :: get_field ( "{$taxonomy_term[0]}_{$taxonomy_term[1]}" , $ field ) ; } throw new \ Exception ( '$taxonomy_term must be either a term object or an array of [$taxonomy, $term_id]' ) ; }
Get the fields for a taxonomy term.

@param array|\WP_Term $taxonomy_term The target term's [taxonomy, $term_id] or term object.
@param string $field The ACF field id or name. Return all fields if blank.
@return mixed
@throws \Exception
Get the fields for a taxonomy term .