ACF_Admin_Tool_Import::html()
html
This function will output the metabox HTML
Метод класса: ACF_Admin_Tool_Import{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ACF_Admin_Tool_Import = new ACF_Admin_Tool_Import(); $ACF_Admin_Tool_Import->html();
Список изменений
С версии 5.6.3 | Введена. |
Код ACF_Admin_Tool_Import::html() ACF Admin Tool Import::html ACF 6.0.4
<?php function html() { ?> <div class="acf-postbox-header"> <h2 class="acf-postbox-title"><?php _e( 'Import Field Groups', 'acf' ); ?></h2> <div class="acf-tip"><i tabindex="0" class="acf-icon acf-icon-help acf-js-tooltip" title="<?php esc_attr_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' ); ?>">?</i></div> </div> <div class="acf-postbox-inner"> <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="acf-btn" value="<?php _e( 'Import JSON', 'acf' ); ?>" /> </p> </div> <?php }