SHARE
TWEET

Untitled

a guest Mar 21st, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /***
  3.  * Exclude widget categories
  4.  *
  5.  * Online Workshop --> ID: 967
  6.  * Online Workshop Bonus --> ID: 1081
  7.  */
  8. add_filter('widget_categories_args','nl_exclude_widget_categories');
  9. function nl_exclude_widget_categories($args){
  10.     $exclude = '967,1081';
  11.     $args['exclude'] = $exclude;
  12.     return $args;
  13. }
RAW Paste Data
Top