{"id":1365594,"date":"2017-10-18T12:00:18","date_gmt":"2017-10-18T19:00:18","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/"},"modified":"2017-10-18T12:00:18","modified_gmt":"2017-10-18T19:00:18","slug":"changing-the-word-ticket-on-various-pages","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/","title":{"rendered":"Changing the word Ticket on Various pages"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I&#8217;ve been looking through various threads for a solution and it is not working for me. I need to change the word Ticket on various of pages, email notifications and even order details.<\/p>\n<p>I have used the extension you provided here: https:\/\/theeventscalendar.com\/extensions\/add-event-and-attendee-information-to-woocommerce-order-details\/ to showcase my attendee data on order details and email notifications.<\/p>\n<p>The above works great and I manage to change the attendee ticket_id from attendee product_id to ticket_id so it captures the right data i want to display. However I am trying to change the title <strong>&#8220;Ticket ID&#8221;<\/strong> to<strong> &#8220;Something Else ID&#8221;<\/strong><\/p>\n<p>I will also include screenshots to show the different areas I&#8217;ve found the word <strong>Tickets\/ticket<\/strong> showing up.<\/p>\n<p>I tried to use this code but it didn&#8217;t work. <\/p>\n<pre><code>function tribe_custom_theme_text ( $translation, $text, $domain ) {\n \n\t\/\/ Put your custom text here in a key =&gt; value pair\n\t\/\/ Example: &#039;Text you want to change&#039; =&gt; &#039;This is what it will be changed to&#039;\n\t\/\/ The text you want to change is the key, and it is case-sensitive\n\t\/\/ The text you want to change it to is the value\n\t\/\/ You can freely add or remove key =&gt; values, but make sure to separate them with a comma\n\t\/\/ This example changes the label &quot;Venue&quot; to &quot;Location&quot;, and &quot;Related Events&quot; to &quot;Similar Events&quot;\n\t$custom_text = array(\n\t\t&#039;Ticket&#039; =&gt; &#039;Audition&#039;,\n\t\t\n\t);\n \n\t\/\/ If this text domain starts with &quot;tribe-&quot;, &quot;the-events-&quot;, or &quot;event-&quot; and we have replacement text\n    \tif( (strpos($domain, &#039;tribe-&#039;) === 0 || strpos($domain, &#039;the-events-&#039;) === 0 || strpos($domain, &#039;event-&#039;) === 0) &amp;&amp; array_key_exists($translation, $custom_text) ) {\n\t\t$translation = $custom_text[$translation];\n\t}\n    return $translation;\n}\nadd_filter(&#039;gettext&#039;, &#039;tribe_custom_theme_text&#039;, 20, 3);<\/code><\/pre>\n<p>Please advise.<\/p>\n","protected":false},"template":"","class_list":["post-1365594","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 Ticket on Various pages -<\/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-ticket-on-various-pages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing the word Ticket on Various pages -\" \/>\n<meta property=\"og:description\" content=\"Hello, I&#8217;ve been looking through various threads for a solution and it is not working for me. I need to change the word Ticket on various of pages, email notifications and even order details. I have used the extension you provided here: https:\/\/theeventscalendar.com\/extensions\/add-event-and-attendee-information-to-woocommerce-order-details\/ to showcase my attendee data on order details and email notifications. The [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/\" \/>\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-ticket-on-various-pages\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/\",\"name\":\"Changing the word Ticket on Various pages -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-10-18T19:00:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/#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\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Changing the word Ticket on Various pages\"}]},{\"@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 Ticket on Various pages -","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-ticket-on-various-pages\/","og_locale":"en_US","og_type":"article","og_title":"Changing the word Ticket on Various pages -","og_description":"Hello, I&#8217;ve been looking through various threads for a solution and it is not working for me. I need to change the word Ticket on various of pages, email notifications and even order details. I have used the extension you provided here: https:\/\/theeventscalendar.com\/extensions\/add-event-and-attendee-information-to-woocommerce-order-details\/ to showcase my attendee data on order details and email notifications. The [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/","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-ticket-on-various-pages\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/","name":"Changing the word Ticket on Various pages -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-10-18T19:00:18+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-the-word-ticket-on-various-pages\/#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":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Changing the word Ticket on Various pages"}]},{"@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\/1365594","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\/1365594\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1365594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}