Created
          October 26, 2015 15:26 
        
      - 
      
 - 
        
Save surefirewebserv/0f320927d081651947a8 to your computer and use it in GitHub Desktop.  
    Hide Categories from WP Category Widget
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /* Remove category from category widget */ | |
| function dtwd_exclude_widget_category($args){ | |
| $exclude = "1,2,3"; // IDs of excluding categories | |
| $args["exclude"] = $exclude; | |
| return $args; | |
| } | |
| add_filter("widget_categories_args","dtwd_exclude_widget_category"); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment