acf_form_taxonomy::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_taxonomy{}
No Hooks.
Returns
N/A.
Usage
$acf_form_taxonomy = new acf_form_taxonomy(); $acf_form_taxonomy->admin_enqueue_scripts();
Changelog
| Since 3.6.0 | Introduced. |
acf_form_taxonomy::admin_enqueue_scripts() acf form taxonomy::admin enqueue scripts code ACF 6.8.8
function admin_enqueue_scripts() {
// validate page
if ( ! $this->validate_page() ) {
return;
}
// vars
$screen = get_current_screen();
$taxonomy = $screen->taxonomy;
// load acf scripts
acf_enqueue_scripts();
// actions
add_action( 'admin_footer', array( $this, 'admin_footer' ), 10, 1 );
add_action( "{$taxonomy}_add_form_fields", array( $this, 'add_term' ), 10, 1 );
add_action( "{$taxonomy}_edit_form", array( $this, 'edit_term' ), 10, 2 );
}