Remove “Comments” link from admin bar if comment status is closed

Posted by Prem Tiwari | Updated on

You can set the default comment status to ‘closed’, but the comments link will stay. Simply drop the following into your functions.php file to get rid of it based on the condition. Offers 2 different approaches.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers