do_action( 'admin_head' )
Fires in head section for all admin pages.
Description Description
Source Source
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
A basic example (from Hello Dolly plugin code):
function
dolly_css() {
// This makes sure that the positioning is also good for right-to-left languages
$x
= is_rtl() ?
'left'
:
'right'
;
echo
"
<style type=
'text/css'
>
#dolly {
float:
$x
;
padding-
$x
: 15px;
padding-top: 5px;
margin: 0;
font-size: 11px;
}
</style>
";
}
add_action(
'admin_head'
,
'dolly_css'
);
Expand full source codeCollapse full source code