ACF_Admin_Tool_Export::submitpublicACF 5.6.3

submit

This function will run when the tool's form has been submit

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->submit();

Changelog

Since 5.6.3 Introduced.

ACF_Admin_Tool_Export::submit() code ACF 6.0.4

function submit() {

	// vars
	$action = acf_maybe_get_POST( 'action' );

	// download
	if ( $action === 'download' ) {

		$this->submit_download();

		// generate
	} elseif ( $action === 'generate' ) {

		$this->submit_generate();

	}

}