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.
Source
do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
(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: