{"id":1134752,"date":"2016-07-02T02:40:38","date_gmt":"2016-07-02T09:40:38","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/"},"modified":"2016-07-02T02:40:38","modified_gmt":"2016-07-02T09:40:38","slug":"remove-events-calendar-pro-widget-with-plugin","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/","title":{"rendered":"Remove Events Calendar Pro widget with plugin"},"content":{"rendered":"<p>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 <\/p>\n<p>function my_unregister_widgets() {<br \/>\nunregister_widget(&#8216;Tribe__Events__Pro__This_Week_Widget&#8217;);<br \/>\nunregister_widget(&#8216;Tribe__Events__Pro__Countdown_Widget&#8217;);<br \/>\n}<br \/>\nadd_action( &#8216;widgets_init&#8217;, &#8216;my_unregister_widgets&#8217;, 90 );<br \/>\nremove_action( &#8216;widgets_init&#8217;, array( Tribe__Events__Pro__Main::instance(), &#8216;pro_widgets_init&#8217; ), 100 );<\/p>\n<p>but It will give me an error Class &#8216;Tribe__Events__Pro__Main&#8217; not found<br \/>\nSo can you help me in removing this widget <\/p>\n","protected":false},"template":"","class_list":["post-1134752","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Remove Events Calendar Pro widget with plugin -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Remove Events Calendar Pro widget with plugin -\" \/>\n<meta property=\"og:description\" content=\"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(&#8216;Tribe__Events__Pro__This_Week_Widget&#8217;); [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/\",\"name\":\"Remove Events Calendar Pro widget with plugin -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-07-02T09:40:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Remove Events Calendar Pro widget with plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Remove Events Calendar Pro widget with plugin -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/","og_locale":"en_US","og_type":"article","og_title":"Remove Events Calendar Pro widget with plugin -","og_description":"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(&#8216;Tribe__Events__Pro__This_Week_Widget&#8217;); [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/","name":"Remove Events Calendar Pro widget with plugin -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-07-02T09:40:38+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-events-calendar-pro-widget-with-plugin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"Remove Events Calendar Pro widget with plugin"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1134752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1134752\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1134752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}