where/how to rename "Free" to "RSVP"

Home Forums Calendar Products Events Calendar PRO where/how to rename "Free" to "RSVP"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1234147
    Sebastien
    Participant

    If an event is classified as “RSVP” then it shows a price of “Free” on the events page. (in my case http://www.thelaughterconsultants.com/shop/events/)
    Where/how can I change that term to RSVP instead?
    Thank you.

    #1234876
    Geoff B.
    Member

    Good evening Sebastien and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    I believe you could use the following snippet in your child theme’s functions.php: https://gist.github.com/GeoffEW/b440feef873af841d023c0bf0839e93f

    The way it is written currently, it replaces “free” by “” (nothing), but it should be pretty easy to use the string you want.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1236518
    Sebastien
    Participant

    Done and working. Thanks!
    For the benefits of others, here is what I added to my child’s theme functions.php

    add_filter ( 'tribe_get_cost', 'tribe_not_show_free', 10, 3 );
    function tribe_not_show_free ( $cost, $post_id, $with_currency_symbol ) {
    	
    	if ( $cost == 'Free' ) {
    		$cost = 'RSVP';
    	}
    	return $cost;
    }
    • This reply was modified 9 years, 2 months ago by Sebastien.
    #1237751
    Geoff B.
    Member

    Good evening Sebastien,

    Awesome! Kudos on implementing this.

    You are welcome back in our support forums any time 🙂

    For now, I am going to close this thread.

    Have a great week!

    Geoff B.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘where/how to rename "Free" to "RSVP"’ is closed to new replies.