admin_print_scripts-<page>
The WordPress Core admin print scripts page hook.
Description
Parameters (1)
- 0. $array (callback) =>
array( 'Yoast_GA_Admin_Assets', 'enqueue_scripts' )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_print_scripts-{$page}', $array );
- The following example is for adding a hook callback.
- // define the admin_print_scripts-<page> callback
- function action_admin_print_scripts_page( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "admin_print_scripts-{$page}", 'action_admin_print_scripts_page', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "admin_print_scripts-{$page}", 'action_admin_print_scripts_page', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /admin/class-admin-menu.php
- add_action( 'admin_print_scripts-' . $page, array( 'Yoast_GA_Admin_Assets', 'enqueue_scripts' ) );