do_action( 'admin_head' )
Fires in head section for all admin pages.
More Information
The common usage is to include CSS (external via <link> or inline via <style>) or JS (external and inline via <script>).
Source
File: wp-admin/admin-header.php
.
View all references
do_action( 'admin_head' );
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes
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_head
so 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.