Skip to content

Instantly share code, notes, and snippets.

@ThomasKujawa
Created April 12, 2024 08:56
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 ThomasKujawa/c4ea62d4c2e68f55e620c62251a83355 to your computer and use it in GitHub Desktop.
Save ThomasKujawa/c4ea62d4c2e68f55e620c62251a83355 to your computer and use it in GitHub Desktop.
Wordpress: Stati der Beiträge farblich hervorheben
add_action('admin_footer','posts_status_color');
function posts_status_color(){
?>
<style>
.status-draft{background: #fc9 !important;}
.status-pending{background: #cff !important;}
.status-publish{/* so lassen wie es ist */}
.status-future{background: #cf9 !important;}
.status-private{background:#f99;}
</style>
<?php
}
@ThomasKujawa
Copy link
Author

Einfach den oberen Code in die functions.php des aktiven Themes einbauen und das wars. Danke an @Perun für diesen tollen Tip auf LinkedIn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment