Changing the "Buy Now" Button Text

When you have Event Tickets or Event Tickets Plus active, events with tickets will have a "Buy Now" button that appears by default in certain places, like list view.

Many users would like to change that button text to something else, like "Register Now". So, we crafted a snippet that you can use to change the button text to whatever works best for your site:

<?php
/**
 * Change "Buy Now!" button text
 */
function tribe_buy_now_button_text( $html ) {
	$html = str_replace( 'Buy Now!' , 'Register Now!', $html );
	return $html;
}
add_filter( 'tribe_tickets_buy_button', 'tribe_buy_now_button_text', 11, 2 );
You can change "Register Now!" to anything that you would like, then add this snippet to the functions.php file of your child theme (be sure not to include the opening "php" tag).

Plugins

  • Event Tickets
  • Event Tickets Plus

Notes

  • Originally written in June 2019
  • Tested with Event Tickets 4.10.6 and Event Tickets Plus 4.10.5
  • Author: Jennifer

Disclaimer

As with all of our recipes, please note that we share this in the hope it will be useful but without any guarantees or commitments. If you wish to use it, it is your responsibility to test it first of all and adapt it to your needs (or find someone who can do so on your behalf). We are unable to provide further support in relation to this recipe.