acf_form_widget::admin_enqueue_scripts()publicACF 3.6.0

admin_enqueue_scripts

This action is run after post query but before any admin script / head actions. It is a good place to register all actions.

@type    action (admin_enqueue_scripts)

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

Хуков нет.

Возвращает

N/A.

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

$acf_form_widget = new acf_form_widget();
$acf_form_widget->admin_enqueue_scripts();

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

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

Код acf_form_widget::admin_enqueue_scripts() ACF 5.10.2

function admin_enqueue_scripts() {

	// validate screen
	if ( acf_is_screen( 'widgets' ) || acf_is_screen( 'customize' ) ) {

		// valid

	} else {

		return;

	}

	// load acf scripts
	acf_enqueue_scripts();

	// actions
	add_action( 'acf/input/admin_footer', array( $this, 'admin_footer' ), 1 );

}