ACF_Admin_Tool_Export::load()publicACF 5.6.3

load

description

Метод класса: ACF_Admin_Tool_Export{}

Хуков нет.

Возвращает

null. Ничего (null).

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

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

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

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

Код ACF_Admin_Tool_Export::load() 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' );
		}
	}

}