acf_isset_termmeta()ACF 5.4.0

acf_isset_termmeta

This function will return true if the termmeta table exists https://developer.wordpress.org/reference/functions/get_term_meta/

No Hooks.

Returns

$post_id. (int)

Usage

acf_isset_termmeta( $taxonomy );
$taxonomy
.
Default: ''

Changelog

Since 5.4.0 Introduced.

acf_isset_termmeta() code ACF 6.8.8

function acf_isset_termmeta( $taxonomy = '' ) {

	// bail early if no table
	if ( get_option( 'db_version' ) < 34370 ) {
		return false;
	}

	// check taxonomy
	if ( $taxonomy && ! taxonomy_exists( $taxonomy ) ) {
		return false;
	}

	// return
	return true;
}