I Want to remove This week events widget and Events Countdown Permanently . So for this I am Creating a plugin because if I will edit in your plugin my Changes will be remove after update of your plugin. I am using the following code please have a look at it
function my_unregister_widgets() {
unregister_widget(‘Tribe__Events__Pro__This_Week_Widget’);
unregister_widget(‘Tribe__Events__Pro__Countdown_Widget’);
}
add_action( ‘widgets_init’, ‘my_unregister_widgets’, 90 );
remove_action( ‘widgets_init’, array( Tribe__Events__Pro__Main::instance(), ‘pro_widgets_init’ ), 100 );
but It will give me an error Class ‘Tribe__Events__Pro__Main’ not found
So can you help me in removing this widget