Change Admin Post/Page List Color By Status
Favorite WordPress tip of the week:
This snippet will change the background colors of posts, pages, and custom post types in the administration post/page lists based on their status, i.e. draft, private, pending, etc.
<?php
add_action('admin_footer','posts_status_color');
function posts_status_color(){
?>
<style>
.status-draft { background: #ffffe0 !important ; }
.status-future { background: #cf9 !important; }
.status-publish { /* no background - keep alternating rows */ }
.status-pending { background: #87c5d6 !important; }
.status-private { background:#fc9; }
</style>
<?php
}
Note: Draft color changed to a slightly lighter yellow than original.






