acf_admin_field_group::current_screen()publicACF 5.0.0

current_screen

This function is fired when loading the admin page before HTML has been rendered.

@type    action (current_screen)

{} Это метод класса: acf_admin_field_group{}

Хуков нет.

Возвращает

null. Ничего.

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

$acf_admin_field_group = new acf_admin_field_group();
$acf_admin_field_group->current_screen();

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

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

Код acf_admin_field_group::current_screen() ACF 5.10.2

function current_screen() {

	// validate screen
	if ( ! acf_is_screen( 'acf-field-group' ) ) {
		return;
	}

	// disable filters to ensure ACF loads raw data from DB
	acf_disable_filters();

	// enqueue scripts
	acf_enqueue_scripts();

	// actions
	add_action( 'acf/input/admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
	add_action( 'acf/input/admin_head', array( $this, 'admin_head' ) );
	add_action( 'acf/input/form_data', array( $this, 'form_data' ) );
	add_action( 'acf/input/admin_footer', array( $this, 'admin_footer' ) );

	// filters
	add_filter( 'acf/input/admin_l10n', array( $this, 'admin_l10n' ) );
}