admin_print_styles-<hook_suffix>
Fires when styles are printed for a specific admin page based on $hook_suffix.
Description
do_action( 'admin_print_styles-<hook_suffix>' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_print_styles-{$hook_suffix}' );
- The following example is for adding a hook callback.
- // define the admin_print_styles-<hook_suffix> callback
- function action_admin_print_styles_hook_suffix( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "admin_print_styles-{$hook_suffix}", 'action_admin_print_styles_hook_suffix', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "admin_print_styles-{$hook_suffix}", 'action_admin_print_styles_hook_suffix', 10, 0 );
Defined (2)
The action is defined in the following location(s).
- /wp-admin/admin-header.php
- do_action( "admin_print_styles-{$hook_suffix}" );
- /wp-admin/includes/template.php
- do_action( "admin_print_styles-$hook_suffix" );