acf_get_taxonomy_post()
Gets a post object for an ACF taxonomy.
Хуков нет.
Возвращает
Объект|true|false
. The post object, or false on failure.
Использование
acf_get_taxonomy_post( $id );
- $id(int|строка) (обязательный)
- The post ID, key, or name.
Список изменений
С версии 6.1 | Введена. |
Код acf_get_taxonomy_post() acf get taxonomy post ACF 6.4.2
function acf_get_taxonomy_post( $id ) { return acf_get_internal_post_type_post( $id, 'acf-taxonomy' ); }