Remove Categories From WordPress

Recently I’ve developed a WordPress site and I’ve added a custom post page to insert, edit and delete some specific types of post easily without going to WordPress native post page for non-admin users. In that case I had to remove those categories from WordPress native post page only for those who were able to use my custom post page. To do this I’ve searched the Google and found a solution but I had to made some changes to fit my needs. The following code snippet will remove two categories from WordPress Post page. To do this, just add the code snippet to your functions.php file.

Latest Blog