ACF_Admin_Tool_Import::html()publicACF 5.6.3

html

This function will output the metabox HTML

{} Это метод класса: ACF_Admin_Tool_Import{}

Хуков нет.

Возвращает

null. Ничего.

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

$ACF_Admin_Tool_Import = new ACF_Admin_Tool_Import();
$ACF_Admin_Tool_Import->html();

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

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

Код ACF_Admin_Tool_Import::html() ACF 5.10.2

<?php
function html() {

	?>
<p><?php _e( 'Select the Advanced Custom Fields JSON file you would like to import. When you click the import button below, ACF will import the field groups.', 'acf' ); ?></p>
<div class="acf-fields">
	<?php

	acf_render_field_wrap(
		array(
			'label'    => __( 'Select File', 'acf' ),
			'type'     => 'file',
			'name'     => 'acf_import_file',
			'value'    => false,
			'uploader' => 'basic',
		)
	);

	?>
</div>
<p class="acf-submit">
	<input type="submit" class="button button-primary" value="<?php _e( 'Import File', 'acf' ); ?>" />
</p>
	<?php

}