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

Method of the class: acf_form_comment{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 3.6.0 Introduced.

acf_form_comment::admin_enqueue_scripts() code 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 );

}