Skip to content

Instantly share code, notes, and snippets.

@DanielSantoro
Created December 18, 2017 18:03
Show Gist options
  • Save DanielSantoro/504d353e70740c7fb6ce5d73b54bfc60 to your computer and use it in GitHub Desktop.
Save DanielSantoro/504d353e70740c7fb6ce5d73b54bfc60 to your computer and use it in GitHub Desktop.
Add CSS to Admin side
<?php
add_action('admin_head', 'custom_admin_css');
function custom_admin_css() {
echo '<style>
#the-list tr.status-wc-cancelled {
background-color: #FCACAC;
}
#the-list tr.status-wc-completed {
background-color: #ACFCFC;
}
</style>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment