admin_print_styles-<page>
Adding stylesheets and based on $is_not_dashboard maybe some more styles and scripts.
Description
Parameters (1)
- 0. $array (callback) =>
array( 'Yoast_GA_Admin_Assets', 'enqueue_styles' )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_print_styles-{$page}', $array );
- The following example is for adding a hook callback.
- // define the admin_print_styles-<page> callback
- function action_admin_print_styles_page( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "admin_print_styles-{$page}", 'action_admin_print_styles_page', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "admin_print_styles-{$page}", 'action_admin_print_styles_page', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /admin/class-admin-menu.php
- add_action( 'admin_print_styles-' . $page, array( 'Yoast_GA_Admin_Assets', 'enqueue_styles' ) );
- add_action( 'admin_print_styles-' . $page, array( 'Yoast_GA_Admin_Assets', 'enqueue_settings_styles' ) );