Skip to content

Instantly share code, notes, and snippets.

@trishasalas
Last active August 9, 2018 20:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trishasalas/b9f5704abfd87a3781470a0f8310ddba to your computer and use it in GitHub Desktop.
Save trishasalas/b9f5704abfd87a3781470a0f8310ddba to your computer and use it in GitHub Desktop.
<?php
/**
* Removes the word "Free" when cost is 0 or event is RSVP
*
* Event Tickets Plus
* @author Trisha Salas
*
* @param $cost
*
* @return string
*/
function tribe_remove_free_from_rsvp( $cost ) {
if ( $cost == 0 || $cost == 'Free' ) {
$cost = '';
}
return $cost;
}
add_filter( 'tribe_get_cost', 'tribe_remove_free_from_rsvp' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment