bobbingwide / ebps-meetings

EBPS Meetings
0 stars 0 forks source link

Need to register `tribe_events_cat` custom category for the menu to work #4

Open bobbingwide opened 2 years ago

bobbingwide commented 2 years ago

When The Events Calendar plugin ( TEC) was deactivated there were two problems with the menu.

  1. The main menu item "Meetings" with custom link https://ebps.org.uk/?post_type=tribe_events didn't work
  2. The Meetings > Meetings submenu was missing.

The first problem was a known issue with oik-unloader. https://github.com/bobbingwide/oik-unloader/issues/5#issuecomment-981097525

The second was because the custom category tribe_events_cat wasn't registered.

Solution

The tribe_eventspost type and tribe_events_cat taxonomy need to registered,. The registration needs to be done earlier than currently; in response to init.