Filter hook 'admin_title'

in WP Core File wp-admin/admin-header.php at line 89

View Source

admin_title

Filter Hook
Description
Filters the title tag content for an admin page.

Hook Information

File Location wp-admin/admin-header.php View on GitHub
Hook Type Filter
Line Number 89

Hook Parameters

Type Name Description
string $admin_title The page title, with extra context added.
string $title The original page title.

Usage Examples

Basic Usage
<?php
// Hook into admin_title
add_filter('admin_title', 'my_custom_filter', 10, 2);

function my_custom_filter($admin_title, $title) {
    // Your custom filtering logic here
    return $admin_title;
}

Source Code Context

wp-admin/admin-header.php:89 - How this hook is used in WordPress core
<?php
  84   * @since 3.1.0
  85   *
  86   * @param string $admin_title The page title, with extra context added.
  87   * @param string $title       The original page title.
  88   */
  89  $admin_title = apply_filters( 'admin_title', $admin_title, $title );
  90  
  91  wp_user_settings();
  92  
  93  _wp_admin_html_begin();
  94  ?>

PHP Documentation

<?php
/**
 * Filters the title tag content for an admin page.
 *
 * @since 3.1.0
 *
 * @param string $admin_title The page title, with extra context added.
 * @param string $title       The original page title.
 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/admin-header.php
Related Hooks

Related hooks will be displayed here in future updates.