admin_print_scripts
Fires when scripts are printed for all admin pages.
Description
Parameters (1)
- 0. $hide_non_monsterinsights_warnings (string) =>
'hide_non_monsterinsights_warnings'
- The hide non monsterinsights warnings.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_print_scripts', $hide_non_monsterinsights_warnings );
- The following example is for adding a hook callback.
- // define the admin_print_scripts callback
- function action_admin_print_scripts( $hide_non_monsterinsights_warnings ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'admin_print_scripts', 'action_admin_print_scripts', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'admin_print_scripts', 'action_admin_print_scripts', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /includes/admin/common.php
- add_action('admin_print_scripts', 'hide_non_monsterinsights_warnings');