Created
April 12, 2024 08:56
-
-
Save ThomasKujawa/c4ea62d4c2e68f55e620c62251a83355 to your computer and use it in GitHub Desktop.
Wordpress: Stati der Beiträge farblich hervorheben
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
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.