How to Add BGs Color to Admin Table by Post Status in WordPress

Prem Tiwari - - Code Snippets, WordPress Snippets


In this post, I will share How to Add BGs Color to Admin Table by Post Status in WordPress with an example.
This is very simple WordPress snippet to add custom background colors to the admin post listing tables by post status like draft, pending, publish, future and private posts.

Add the following snippet at the end of your functions.php file from your current activated theme folder.

After adding the above code inside your functions.php file, your admin post listing page will look like below screenshot.

How to Add BGs Color to Admin Table by Post Status in WordPress

I hope you found this tutorial helpful! Please do like and share this tutorial with friends and don’t forget to subscribe to get latest WordPress tips directly in your mailbox.


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


Tags: , , , , , , , ,