acf_translate_internal_post_type()ACF 6.1

Translates the settings for an ACF internal post type.

Хуков нет.

Возвращает

Массив.

Использование

acf_translate_internal_post_type( $internal_post_type, $post_type );
$internal_post_type(массив) (обязательный)
The ACF post array.
$post_type(строка) (обязательный)
The post type name.

Список изменений

С версии 6.1 Введена.

Код acf_translate_internal_post_type() ACF 6.4.2

function acf_translate_internal_post_type( $internal_post_type, $post_type ) {
	$instance = acf_get_internal_post_type_instance( $post_type );

	if ( ! $instance ) {
		return $internal_post_type;
	}

	return $instance->translate_post( $internal_post_type );
}