do_action( 'admin_head' )

Fires in head section for all admin pages.


Description Description


Source Source

File: wp-admin/admin-header.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

  1. Skip to note 1 content
    Contributed by lucspe

    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' );
    

You must log in before being able to contribute a note or feedback.