acf_get_term_post_id() ACF 5.5.6
This function will return a valid post_id string for a given term and taxonomy
Хуков нет.
Возвращает
(Строку).
Использование
acf_get_term_post_id( $taxonomy, $term_id );
- $taxonomy (обязательный)
- -
- $term_id (обязательный)
- -
Список изменений
С версии 5.5.6 | Введена. |
Код acf_get_term_post_id() acf get term post id ACF 5.9.1
function acf_get_term_post_id( $taxonomy, $term_id ) {
// WP < 4.4
if( !acf_isset_termmeta() ) {
return $taxonomy . '_' . $term_id;
}
// return
return 'term_' . $term_id;
}