Skip to content

Instantly share code, notes, and snippets.

@DanielSantoro
Created December 4, 2014 16:12
Show Gist options
  • Save DanielSantoro/291fd490e2b148345ad6 to your computer and use it in GitHub Desktop.
Save DanielSantoro/291fd490e2b148345ad6 to your computer and use it in GitHub Desktop.
Change Order Status Icon Color (Version 2!)
function wc_order_status_styling() {
echo '<style>
.widefat .column-order_status mark.on-hold:after, .widefat .column-order_status mark.completed:after, .widefat .column-order_status mark.cancelled:after, .widefat .column-order_status mark.processing:after {
font-size: 2em;
}
/* Processing Ellipsis */
.widefat .column-order_status mark.processing:after {
color: #2529d7;
}
/* On-Hold Dash */
.widefat .column-order_status mark.on-hold:after {
color: #555555;
}
/* Cancelled X */
.widefat .column-order_status mark.cancelled:after {
color: #d72525;
}
/* Completed Checkmark */
.widefat .column-order_status mark.completed:after {
color: #32d725;
}
</style>';
}
add_action('admin_head', 'wc_order_status_styling');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment