do_action( ‘admin_print_styles’ )

Fires when styles are printed for all admin pages.

More Information

admin_print_styles should not be used to enqueue styles or scripts on the admin pages. Use admin_enqueue_scripts instead.


do_action( 'admin_print_styles' );



User Contributed Notes

  1. Skip to note 4 content

    Add custom inline CSS into the admin area. You must add style tag.

    add_action( 'admin_print_styles', 'wpdocs_admin_column_styles' );
     * Adds Column inline style
    function wpdocs_admin_column_styles() {
    	$custom_css = 'table.wp-list-table .column-thumb { 
    		width: 52px; 
    		text-align: center;
    		white-space: nowrap;
    	echo $custom_css;

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