acf_get_raw_internal_post_type()
Retrieves raw internal post type data for the given identifier.
Хуков нет.
Возвращает
Массив|false
. The internal post type array.
Использование
acf_get_raw_internal_post_type( $id, $post_type );
- $id(int|строка) (обязательный)
- The post ID.
- $post_type(строка) (обязательный)
- The post type name.
Список изменений
С версии 6.1 | Введена. |
Код acf_get_raw_internal_post_type() acf get raw internal post type ACF 6.4.2
function acf_get_raw_internal_post_type( $id, $post_type ) { $instance = acf_get_internal_post_type_instance( $post_type ); if ( ! $instance ) { return false; } return $instance->get_raw_post( $id ); }