acf_get_terms()ACF 5.4.0

acf_get_terms

This function is a wrapper for the get_terms() function

Хуков нет.

Возвращает

(Массив).

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

acf_get_terms( $args );
$args(обязательный)
.

Список изменений

С версии 5.4.0 Введена.

Код acf_get_terms() ACF 6.4.2

function acf_get_terms( $args ) {

	// defaults
	$args = wp_parse_args(
		$args,
		array(
			'taxonomy'               => null,
			'hide_empty'             => false,
			'update_term_meta_cache' => false,
		)
	);

	// return
	return get_terms( $args );
}