Exclude specific from WPFC events category ddm

eventsmanager Jun 8th, 2017 (edited) 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * This snippet will exclude or remove events category from WP FullCalendar Events Categories Dropdown
  3.  *
  4.  * Replace 9 or 30 with your Events Category ID you've wanted to remove or exclude from the list
  5.  */
  6. function exclude_category($taxonomy_args, $taxonomy){
  8.  $taxonomy_args['exclude'] = '9,30';
  10.  return $taxonomy_args;
  11. }
  12. add_filter('wpmfc_calendar_taxonomy_args','exclude_category',10,2);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand