Created
August 28, 2019 14:14
-
-
Save macariojames/73f623e788a89078473249c7188227a0 to your computer and use it in GitHub Desktop.
WordPress: color code posts by "Status" in Dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Color code posts by "Status in Dashboard ~mj */ | |
function mj_color_code_posts_by_status() { | |
?> | |
<style> | |
.status-draft { background-color: #ffff99 !important; } | |
.status-future { background-color: #ccff99 !important; } | |
.status-pending { background-color: #87c5d6 !important; } | |
.status-private { background-color:#ffcc99; } | |
.status-publish { background-color: #fff !important; } | |
.status-sticky { background-color: pink !important; } | |
</style> | |
<?php | |
} | |
add_action('admin_head','mj_color_code_posts_by_status'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment