acf_get_terms()ACF 5.4.0

acf_get_terms

This function is a wrapper for the get_terms() function

No Hooks.

Returns

(Array).

Usage

acf_get_terms( $args );
$args(required)
.

Changelog

Since 5.4.0 Introduced.

acf_get_terms() code ACF 6.8.8

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 );
}