acf_export_internal_post_type_as_php()
Exports an ACF post as PHP.
Хуков нет.
Возвращает
Строку|true|false
.
Использование
acf_export_internal_post_type_as_php( $post, $post_type );
- $post(массив) (обязательный)
- The ACF post array.
- $post_type(строка)
- The post type of the ACF post being exported.
По умолчанию: 'acf-field-group'
Список изменений
С версии 6.1 | Введена. |
Код acf_export_internal_post_type_as_php() acf export internal post type as php ACF 6.4.2
function acf_export_internal_post_type_as_php( $post, $post_type = 'acf-field-group' ) { $instance = acf_get_internal_post_type_instance( $post_type ); if ( $instance ) { return $instance->export_post_as_php( $post ); } return false; }