acf_form_comment::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.

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

Хуков нет.

Возвращает

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

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

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

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

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

Код acf_form_comment::admin_enqueue_scripts() ACF 6.0.4

function admin_enqueue_scripts() {

	// validate page
	if ( ! $this->validate_page() ) {

		return;

	}

	// load acf scripts
	acf_enqueue_scripts();

	// actions
	add_action( 'admin_footer', array( $this, 'admin_footer' ), 10, 1 );
	add_action( 'add_meta_boxes_comment', array( $this, 'edit_comment' ), 10, 1 );

}