Fires in head section for all admin pages.
Source
do_action( 'admin_head' );
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
| CARVIEW |
Fires in head section for all admin pages.
The common usage is to include CSS (external via <link> or inline via <style>) or JS (external and inline via <script>).
do_action( 'admin_head' );
| Used by | Description |
|---|---|
iframe_header()wp-admin/includes/template.php | Generic Iframe header for use with Thickbox. |
wp_iframe()wp-admin/includes/media.php | Outputs the iframe to display the media upload page. |
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
A basic example (from Hello Dolly plugin code):
Example migrated from Codex:
This example adds an inline CSS style to
admin_headso the welcome message option from dashboard is removed; you can make and customize your own function and add it the same way.Example migrated from Codex:
In this example, console.log is added, which will only be executed on the admin side.