admin_print_styles-{$hook_suffix}
Action HookDescription
Generic Iframe header for use with Thickbox.Hook Information
File Location |
wp-admin/includes/template.php
View on GitHub
|
Hook Type | Action |
Line Number | 2159 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$title
|
Optional. Title of the Iframe page. Default empty. |
bool
|
$deprecated
|
Not used. |
Usage Examples
Basic Usage
<?php
// Hook into admin_print_styles-{$hook_suffix}
add_action('admin_print_styles-{$hook_suffix}', 'my_custom_function', 10, 2);
function my_custom_function($title, $deprecated) {
// Your custom code here
}
Source Code Context
wp-admin/includes/template.php:2159
- How this hook is used in WordPress core
<?php
2154 <?php
2155 /** This action is documented in wp-admin/admin-header.php */
2156 do_action( 'admin_enqueue_scripts', $hook_suffix );
2157
2158 /** This action is documented in wp-admin/admin-header.php */
2159 do_action( "admin_print_styles-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
2160
2161 /** This action is documented in wp-admin/admin-header.php */
2162 do_action( 'admin_print_styles' );
2163
2164 /** This action is documented in wp-admin/admin-header.php */
PHP Documentation
<?php
/**
* Generic Iframe header for use with Thickbox.
*
* @since 2.7.0
*
* @global string $hook_suffix
* @global string $admin_body_class
* @global string $body_id
* @global WP_Locale $wp_locale WordPress date and time locale object.
*
* @param string $title Optional. Title of the Iframe page. Default empty.
* @param bool $deprecated Not used.
*/
Quick Info
- Hook Type: Action
- Parameters: 2
- File: wp-admin/includes/template.php
Related Hooks
Related hooks will be displayed here in future updates.