Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add colors to admin posts status
add_action('admin_footer','posts_status_color');
function posts_status_color() { ?>
<style>
.status-draft{background: #FCE3F2 !important;}
.status-pending{background: #87C5D6 !important;}
.status-publish{/* no background keep wp alternating colors */}
.status-future{background: #C6EBF5 !important;}
.status-private{background:#F2D46F;}
</style>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.