admin_title filter-hookWP 3.1.0

Filters the title tag content for an admin page.

Usage

add_filter( 'admin_title', 'wp_kama_admin_title_filter', 10, 2 );

/**
 * Function for `admin_title` filter-hook.
 * 
 * @param string $admin_title The page title, with extra context added.
 * @param string $title       The original page title.
 *
 * @return string
 */
function wp_kama_admin_title_filter( $admin_title, $title ){

	// filter...
	return $admin_title;
}
$admin_title(string)
The page title, with extra context added.
$title(string)
The original page title.

Changelog

Since 3.1.0 Introduced.

Where the hook is called

In file: /wp-admin/admin-header.php
admin_title
wp-admin/admin-header.php 84
$admin_title = apply_filters( 'admin_title', $admin_title, $title );

Where the hook is used in WordPress

Usage not found.