Last active
August 9, 2018 20:38
-
-
Save trishasalas/b9f5704abfd87a3781470a0f8310ddba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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