do_action( "admin_head-{$hook_suffix}" )
Fires in head section for a specific admin page.
Description
The dynamic portion of the hook name, $hook_suffix
, refers to the hook suffix for the admin page.
More Information
This hook provides no parameters. You use this hook by having your function echo output to the browser, or by having it perform background tasks. Your functions shouldn’t return, and shouldn’t take any parameters.
Source
File: wp-admin/admin-header.php
.
View all references
do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
(From Codex)
Tools pages
To add <head></head> content to a management page, the suffix for this hook should be in the following form:
(From Codex)
Options pages
This hook is an action which means that it primarily acts as an event trigger, instead of a content filter. This is a semantic difference, but it will help you to remember what this hook does if you use it like this: