Skip to content

Instantly share code, notes, and snippets.

@macariojames
Created August 28, 2019 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macariojames/73f623e788a89078473249c7188227a0 to your computer and use it in GitHub Desktop.
Save macariojames/73f623e788a89078473249c7188227a0 to your computer and use it in GitHub Desktop.
WordPress: color code posts by "Status" in Dashboard
/* 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