acf_isset_termmeta()
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 isset termmeta ACF 6.4.2
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;
}