admin_head-{$hook_suffix} WordPress Action Hook

The admin_head-{$hook_suffix} hook is triggered when the head section of the admin page is being generated. This hook can be used to add custom styles or JavaScript to the admin page.

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.


Top ↑

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.


Top ↑

Source

File: wp-admin/admin-header.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.