{"id":1346577,"date":"2017-09-08T07:15:50","date_gmt":"2017-09-08T14:15:50","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/"},"modified":"2017-09-08T07:15:50","modified_gmt":"2017-09-08T14:15:50","slug":"problem-with-add_filter","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/","title":{"rendered":"Problem with add_filter"},"content":{"rendered":"<p>Hello<\/p>\n<p>I want change something at the current event displaying.<br \/>\nSo I try with this function (in my child_theme function.php file) to hide the displaying of &#8220;R\u00e9ccurent \u00e9v\u00e8nements&#8221; in a list :<\/p>\n<p>add_filter( &#8216;fct_change_affic_recurent_event&#8217;, &#8216;tribe_events_recurrence_tooltip&#8217;,100,1);<br \/>\nfunction fct_change_affic_recurent_event( $post_id = null ) {<\/p>\n<p>    if ( empty( $post_id ) ) {<br \/>\n\t\t\t$post_id = get_the_ID();<br \/>\n\t\t}<br \/>\n\t\t$tooltip = &#8221;;<br \/>\n\t\tif ( tribe_is_recurring_event( $post_id ) ) {<br \/>\n\t\t\t}<br \/>\n\t\treturn $tooltip;<\/p>\n<p>}<\/p>\n<p>But this don&#8217;t change anything here : https:\/\/testcoteauxpais.org\/events\/?_sft_tribe_events_cat=soiree<br \/>\nCan you give me an advise ?<\/p>\n<p>Thank for your help.<br \/>\nSorry for my bad english.<br \/>\nHave a good day,<\/p>\n<p>Yves<\/p>\n","protected":false},"template":"","class_list":["post-1346577","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>Problem with add_filter -<\/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\/problem-with-add_filter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Problem with add_filter -\" \/>\n<meta property=\"og:description\" content=\"Hello I want change something at the current event displaying. So I try with this function (in my child_theme function.php file) to hide the displaying of &#8220;R\u00e9ccurent \u00e9v\u00e8nements&#8221; in a list : add_filter( &#8216;fct_change_affic_recurent_event&#8217;, &#8216;tribe_events_recurrence_tooltip&#8217;,100,1); function fct_change_affic_recurent_event( $post_id = null ) { if ( empty( $post_id ) ) { $post_id = get_the_ID(); } $tooltip = [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/\" \/>\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\/problem-with-add_filter\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/\",\"name\":\"Problem with add_filter -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-09-08T14:15:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/#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\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Problem with add_filter\"}]},{\"@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":"Problem with add_filter -","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\/problem-with-add_filter\/","og_locale":"en_US","og_type":"article","og_title":"Problem with add_filter -","og_description":"Hello I want change something at the current event displaying. So I try with this function (in my child_theme function.php file) to hide the displaying of &#8220;R\u00e9ccurent \u00e9v\u00e8nements&#8221; in a list : add_filter( &#8216;fct_change_affic_recurent_event&#8217;, &#8216;tribe_events_recurrence_tooltip&#8217;,100,1); function fct_change_affic_recurent_event( $post_id = null ) { if ( empty( $post_id ) ) { $post_id = get_the_ID(); } $tooltip = [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/","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\/problem-with-add_filter\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/","name":"Problem with add_filter -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-09-08T14:15:50+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/problem-with-add_filter\/#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":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Problem with add_filter"}]},{"@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\/1346577","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\/1346577\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1346577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}