admin_body_class
Filter HookDescription
Generic Iframe header for use with Thickbox.Hook Information
File Location |
wp-admin/includes/template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 2188 |
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_body_class
add_filter('admin_body_class', 'my_custom_filter', 10, 2);
function my_custom_filter($title, $deprecated) {
// Your custom filtering logic here
return $title;
}
Source Code Context
wp-admin/includes/template.php:2188
- How this hook is used in WordPress core
<?php
2183 </head>
2184 <?php
2185 $admin_body_id = isset( $body_id ) ? 'id="' . $body_id . '" ' : '';
2186
2187 /** This filter is documented in wp-admin/admin-header.php */
2188 $admin_body_classes = apply_filters( 'admin_body_class', '' );
2189 $admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
2190 ?>
2191 <body <?php echo $admin_body_id; ?>class="wp-admin wp-core-ui no-js iframe <?php echo esc_attr( $admin_body_classes ); ?>">
2192 <script type="text/javascript">
2193 (function(){
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: Filter
- Parameters: 2
- File: wp-admin/includes/template.php
Related Hooks
Related hooks will be displayed here in future updates.