Title: Get Tickets button
Last modified: January 17, 2020

---

# Get Tickets button

 *  Resolved [roabe](https://wordpress.org/support/users/roabe/)
 * (@roabe)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/get-tickets-button/)
 * Please, how to change the text of a button “Get Tickets”? I need to customize
   for a foreign language site.
    I’m using the plugin “Code Snippets”. What do I
   have to write there? This doesn’t work: [https://support.theeventscalendar.com/178892-Change-the-wording-of-any-bit-of-text-or-string](https://support.theeventscalendar.com/178892-Change-the-wording-of-any-bit-of-text-or-string)
 * And how to delete text “Don’t show me on public attendee lists”?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [roabe](https://wordpress.org/support/users/roabe/)
 * (@roabe)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/get-tickets-button/#post-12354547)
 * **Change the button text “Get Tickets”:**
    (I solved it myself)
 *     ```
       function tribe_custom_theme_text_with_context ( $translation, $text, $context, $domain ) {
   
       	// Put your custom text here in a key => value pair
       	// Example: 'Text you want to change' => 'This is what it will be changed to'
       	// The text you want to change is the key, and it is case-sensitive
       	// The text you want to change it to is the value
       	// You can freely add or remove key => values, but make sure to separate them with a comma
       	// This example changes the label "Venue" to "Location", and "Related Events" to "Similar Events"
       	$custom_text = array(
       		'Get Tickets' => 'New text',
       	);
   
       	// If this text domain starts with "tribe-", "the-events-", or "event-" and we have replacement text
           	if( (strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0 || strpos($domain, 'event-') === 0) && array_key_exists($translation, $custom_text) ) {
       		$translation = $custom_text[$translation];
       	}
           return $translation;
       }
       add_filter('gettext_with_context', 'tribe_custom_theme_text_with_context', 21, 4);
       ```
   
    -  This reply was modified 6 years, 6 months ago by [roabe](https://wordpress.org/support/users/roabe/).
    -  This reply was modified 6 years, 6 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Thread Starter [roabe](https://wordpress.org/support/users/roabe/)
 * (@roabe)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/get-tickets-button/#post-12356930)
 * I helped myself… Solved
 *  [Sky Shabatura](https://wordpress.org/support/users/skyshab/)
 * (@skyshab)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/get-tickets-button/#post-12483329)
 * Hi there,
 * Awesome! Glad you were able to come up with a solution. Thanks for sharing it
   here for others to see.
 * The new tickets UI introduced some new translation strings. These may not all
   be translated yet for a given language. If you have a custom translation file,
   it may also need to be updated to include the new strings.
 * Best,
    Sky

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Get Tickets button’ is closed to new replies.

 * ![](https://ps.w.org/event-tickets/assets/icon.svg?rev=2259340)
 * [Event Tickets and Registration](https://wordpress.org/plugins/event-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/event-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-tickets/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sky Shabatura](https://wordpress.org/support/users/skyshab/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/get-tickets-button/#post-12483329)
 * Status: resolved