ACF_Admin_Tool_Export::loadpublicACF 5.6.3

load

description

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

Changelog

Since 5.6.3 Introduced.

ACF_Admin_Tool_Export::load() code ACF 6.0.4

function load() {

	// active
	if ( $this->is_active() ) {

		// get selected keys
		$selected = $this->get_selected_keys();

		// add notice
		if ( $selected ) {
			$count = count( $selected );
			$text  = sprintf( _n( 'Exported 1 field group.', 'Exported %s field groups.', $count, 'acf' ), $count );
			acf_add_admin_notice( $text, 'success' );
		}
	}

}