admin_print_scripts-{$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 | 2165 |
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_scripts-{$hook_suffix}
add_action('admin_print_scripts-{$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:2165
- How this hook is used in WordPress core
<?php
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 */
2165 do_action( "admin_print_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
2166
2167 /** This action is documented in wp-admin/admin-header.php */
2168 do_action( 'admin_print_scripts' );
2169
2170 /** 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.