0

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

0

PHP – 8.0 Match Expression

In PHP 8.0 there is a new feature or I should say a new language construct (keyword) going to be introduced,  which has been implemented depending […]

0

New Union Type in PHP – 8

A new RFC has been finished voting and accepted for PHP – 8. That is “Union Types”, which is an extension of PHP’s type system. […]