Show the 'Sold Out!' message for events that are in the past


By default the 'Sold out!' message is not shown for past events. This snippet brings it back.



Copy the below code into your (child) theme's functions.php file (or wherever you usually put custom php code).


Event Tickets


add_action( 'tribe_events_inside_cost', 'soldout_in_past' );
function soldout_in_past() {
	if ( tribe_is_past_event() && tribe_events_has_soldout() ) {
		echo '<span class="tribe-out-of-stock">Sold out</span>';


  • Originally written in November 2018
  • Tested with Event Tickets 4.8.4
  • Author: AndrĂ¡s Guseo


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.