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

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.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , , , ,