Before 3.10 Update I was unregistering all of the Event Pro Widget with this:
if(class_exists('TribeEventsPro'))
{
remove_action('widgets_init', array(TribeEventsPro::instance(), 'pro_widgets_init'), 100);
}
But now that no longer works with the new update. I have tried several things considering TribeEventsPro has been moved to Tribe__Events__Pro__Main but have had no luck.
A simple rename does not work:
if(class_exists('TribeEventsPro'))
{
remove_action('widgets_init', array(Tribe__Events__Pro__Main::instance(), 'pro_widgets_init'), 100);
}
Please advise on how to unregister all event widgets, thanks!