acf_get_term_post_id()
Устарела с версии 5.9.2. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Returns a valid post_id string for a given term and taxonomy. No longer needed since WP introduced the termmeta table in WP 4.4.
Хуков нет.
Возвращает
(Строку).
Использование
acf_get_term_post_id( $taxonomy, $term_id );
- $taxonomy(обязательный)
- .
- $term_id(обязательный)
- .
Список изменений
| С версии 5.5.6 | Введена. |
| Устарела с | 5.9.2 |
Код acf_get_term_post_id() acf get term post id ACF 6.4.2
function acf_get_term_post_id( $taxonomy, $term_id ) {
_deprecated_function( __FUNCTION__, '5.9.2', 'string format term_%d' );
return 'term_' . $term_id;
}