acf_get_taxonomy_post()ACF 6.1

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 6.4.2

function acf_get_taxonomy_post( $id ) {
	return acf_get_internal_post_type_post( $id, 'acf-taxonomy' );
}