ACF_Assets::add_actionsprivateACF 5.9.0

Adds the actions needed to print supporting inline scripts.

Method of the class: ACF_Assets{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->add_actions();

Changelog

Since 5.9.0 Introduced.

ACF_Assets::add_actions() code ACF 6.0.4

private function add_actions() {

	// Only run once.
	if ( acf_has_done( 'ACF_Assets::add_actions' ) ) {
		return;
	}

	// Add actions.
	$this->add_action( 'admin_enqueue_scripts', 'enqueue_scripts', 20 );
	$this->add_action( 'admin_print_scripts', 'print_scripts', 20 );
	$this->add_action( 'admin_print_footer_scripts', 'print_footer_scripts', 20 );
}