ACF_Admin_Tool_Export::html_singlepublicACF 5.6.3

Renders the PHP export screen.

Method of the class: ACF_Admin_Tool_Export{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ACF_Admin_Tool_Export = new ACF_Admin_Tool_Export();
$ACF_Admin_Tool_Export->html_single();

Changelog

Since 5.6.3 Introduced.

ACF_Admin_Tool_Export::html_single() code ACF 6.8.8

<?php
public function html_single() {
	?>
	<div class="acf-postbox-header">
		<h2 class="acf-postbox-title"><?php esc_html_e( 'Export - Generate PHP', 'acf' ); ?></h2>
		<i tabindex="0" class="acf-icon acf-icon-help acf-js-tooltip" title="<?php esc_attr_e( "The following code can be used to register a local version of the selected items. Storing field groups, post types, or taxonomies locally can provide many benefits such as faster load times, version control & dynamic fields/settings. Simply copy and paste the following code to your theme's functions.php file or include it within an external file, then deactivate or delete the items from the ACF admin.", 'acf' ); ?>">?</i>
	</div>
	<div class="acf-postbox-columns">
		<div class="acf-postbox-main">
			<?php $this->html_generate(); ?>
		</div>
		<div class="acf-postbox-side">
			<?php $this->html_panel_selection(); ?>
			<p class="acf-submit">
				<button type="submit" name="action" class="acf-btn" value="generate"><?php esc_html_e( 'Generate PHP', 'acf' ); ?></button>
			</p>
		</div>
	</div>
	<?php
}