{"id":810459,"date":"2014-10-14T08:51:19","date_gmt":"2014-10-14T15:51:19","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/"},"modified":"2014-10-15T08:40:49","modified_gmt":"2014-10-15T15:40:49","slug":"changing-the-word-events-snippet-causing-fatal-error","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/","title":{"rendered":"Changing the word events snippet causing fatal error"},"content":{"rendered":"<p>Hi Guys,<br \/>\nI&#8217;m trying to use the snippet of code suggested here:<br \/>\nhttps:\/\/theeventscalendar.com\/support\/documentation\/changing-the-word-events-to-something-else\/<\/p>\n<p>to change the word &#8216;Events&#8217; to &#8216;Courses&#8217;. I&#8217;m using Pagelines DMS 2.1.7 and iBlogPro6 V 1.2.<br \/>\nWhen I add the snippet to the function.php file I get the following error. <\/p>\n<p>Fatal error: Call to undefined function add_filter() in \/home\/noelgrou\/public_html\/wp-includes\/functions.php on line 4639<\/p>\n<p>As soon as I remove the snippet and re-save the file, all is well again.<br \/>\nI&#8217;ve added the snippet to the very end of the functions.php file, after the last }.<br \/>\nPerhaps there is somewhere else I need to place it? Any advice on this would be very much appreciated.<br \/>\nThanks a mil.<br \/>\nGav. <\/p>\n","protected":false},"template":"","class_list":["post-810459","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>Changing the word events snippet causing fatal error -<\/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\/changing-the-word-events-snippet-causing-fatal-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing the word events snippet causing fatal error -\" \/>\n<meta property=\"og:description\" content=\"Hi Guys, I&#8217;m trying to use the snippet of code suggested here: https:\/\/theeventscalendar.com\/support\/documentation\/changing-the-word-events-to-something-else\/ to change the word &#8216;Events&#8217; to &#8216;Courses&#8217;. I&#8217;m using Pagelines DMS 2.1.7 and iBlogPro6 V 1.2. When I add the snippet to the function.php file I get the following error. Fatal error: Call to undefined function add_filter() in \/home\/noelgrou\/public_html\/wp-includes\/functions.php on line 4639 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-10-15T15:40:49+00:00\" \/>\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\/changing-the-word-events-snippet-causing-fatal-error\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/\",\"name\":\"Changing the word events snippet causing fatal error -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-10-14T15:51:19+00:00\",\"dateModified\":\"2014-10-15T15:40:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/#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\":\"Changing the word events snippet causing fatal error\"}]},{\"@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":"Changing the word events snippet causing fatal error -","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\/changing-the-word-events-snippet-causing-fatal-error\/","og_locale":"en_US","og_type":"article","og_title":"Changing the word events snippet causing fatal error -","og_description":"Hi Guys, I&#8217;m trying to use the snippet of code suggested here: https:\/\/theeventscalendar.com\/support\/documentation\/changing-the-word-events-to-something-else\/ to change the word &#8216;Events&#8217; to &#8216;Courses&#8217;. I&#8217;m using Pagelines DMS 2.1.7 and iBlogPro6 V 1.2. When I add the snippet to the function.php file I get the following error. Fatal error: Call to undefined function add_filter() in \/home\/noelgrou\/public_html\/wp-includes\/functions.php on line 4639 [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/","article_modified_time":"2014-10-15T15:40:49+00:00","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\/changing-the-word-events-snippet-causing-fatal-error\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/","name":"Changing the word events snippet causing fatal error -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-10-14T15:51:19+00:00","dateModified":"2014-10-15T15:40:49+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-events-snippet-causing-fatal-error\/#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":"Changing the word events snippet causing fatal error"}]},{"@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\/810459","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\/810459\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=810459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}