Visit: https://forum.phparea.com/thread/how-to-hide-subcategories-in-wordpress