{"id":1329586,"date":"2017-08-02T10:00:11","date_gmt":"2017-08-02T17:00:11","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/"},"modified":"2017-08-02T10:00:11","modified_gmt":"2017-08-02T17:00:11","slug":"change-rsvp-now-button","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/","title":{"rendered":"Change RSVP Now button"},"content":{"rendered":"<p>I can&#8217;t seem to get the buttons, RSVP Now or Confirm RSVP changes.<\/p>\n<p>I&#8217;m using the following snippet to update the wording in other sections: <\/p>\n<p><code><\/p>\n<p>\/\/ Modify RSVP to Registration<br \/>\nfunction tribe_custom_theme_text ( $translation, $text, $domain ) {<\/p>\n<p>\/\/ Put your custom text here in a key =&gt; value pair<br \/>\n\/\/ Example: 'Text you want to change' =&gt; 'This is what it will be changed to'<br \/>\n\/\/ The text you want to change is the key, and it is case-sensitive<br \/>\n\/\/ The text you want to change it to is the value<br \/>\n\/\/ You can freely add or remove key =&gt; values, but make sure to separate them with a comma<br \/>\n\/\/ This example changes the label \"Venue\" to \"Location\", and \"Related Events\" to \"Similar Events\"<br \/>\n$custom_text = array(<br \/>\n'RSVP' =&gt; 'Register',<br \/>\n'Tickets' =&gt; 'Register and pay online.',<br \/>\n'Send RSVP confirmation to:' =&gt; 'Send registration confirmation to:',<br \/>\n);<\/p>\n<p>\/\/ If this text domain starts with \"tribe-\", \"the-events-\", or \"event-\" and we have replacement text<br \/>\nif( (strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0 || strpos($domain, 'event-') === 0) &amp;&amp; array_key_exists($translation, $custom_text) ) {<br \/>\n$translation = $custom_text[$translation];<br \/>\n}<\/p>\n<p>return $translation;<br \/>\n}<br \/>\nadd_filter('gettext', 'tribe_custom_theme_text', 20, 3);<\/p>\n<p>function tribe_custom_theme_text_with_context ( $translation, $text, $context, $domain ) {<\/p>\n<p>\t\/\/ Put your custom text here in a key =&gt; value pair<br \/>\n\t\/\/ Example: 'Text you want to change' =&gt; 'This is what it will be changed to'<br \/>\n\t\/\/ The text you want to change is the key, and it is case-sensitive<br \/>\n\t\/\/ The text you want to change it to is the value<br \/>\n\t\/\/ You can freely add or remove key =&gt; values, but make sure to separate them with a comma<br \/>\n\t\/\/ This example changes the label \"Venue\" to \"Location\", and \"Related Events\" to \"Similar Events\"<br \/>\n\t$custom_text = array(<br \/>\n\t\t'RSVP' =&gt; 'Registration',<br \/>\n\t);<\/p>\n<p>\t\/\/ If this text domain starts with \"tribe-\", \"the-events-\", or \"event-\" and we have replacement text<br \/>\n    \tif( (strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0 || strpos($domain, 'event-') === 0) &amp;&amp; array_key_exists($translation, $custom_text) ) {<br \/>\n\t\t$translation = $custom_text[$translation];<br \/>\n\t}<br \/>\n    return $translation;<br \/>\n}<br \/>\nadd_filter('gettext_with_context', 'tribe_custom_theme_text_with_context', 21, 4);<br \/>\n<\/code><\/p>\n<p>Which I&#8217;m happy with, but now I want to also change <\/p>\n<p>RSVP NOW to &#8211;&gt; Register Now<br \/>\nConfirm RSVP to &#8211;&gt; Confirm Registration<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-1329586","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>Change RSVP Now button -<\/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\/change-rsvp-now-button\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change RSVP Now button -\" \/>\n<meta property=\"og:description\" content=\"I can&#8217;t seem to get the buttons, RSVP Now or Confirm RSVP changes. I&#8217;m using the following snippet to update the wording in other sections: \/\/ Modify RSVP to Registration function tribe_custom_theme_text ( $translation, $text, $domain ) { \/\/ Put your custom text here in a key =&gt; value pair \/\/ Example: &#039;Text you want [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/\",\"name\":\"Change RSVP Now button -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-08-02T17:00:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/#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\":\"Change RSVP Now button\"}]},{\"@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":"Change RSVP Now button -","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\/change-rsvp-now-button\/","og_locale":"en_US","og_type":"article","og_title":"Change RSVP Now button -","og_description":"I can&#8217;t seem to get the buttons, RSVP Now or Confirm RSVP changes. I&#8217;m using the following snippet to update the wording in other sections: \/\/ Modify RSVP to Registration function tribe_custom_theme_text ( $translation, $text, $domain ) { \/\/ Put your custom text here in a key =&gt; value pair \/\/ Example: 'Text you want [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/","name":"Change RSVP Now button -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-08-02T17:00:11+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-rsvp-now-button\/#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":"Change RSVP Now button"}]},{"@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\/1329586","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\/1329586\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1329586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}