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/

Хуков нет.

Возвращает

$post_id. (int)

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

acf_isset_termmeta( $taxonomy );
$taxonomy **
-
По умолчанию: ''

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

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

Код acf_isset_termmeta() ACF 6.0.4

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;

}