Tribe__Tickets__RSVP::trigger_get_cost( string $cost, int $post_id, boolean $unused_with_currency_symbol )

Trigger for tribe_get_cost if there are only RSVPs


Parameters

$cost

(string) (Required)

$post_id

(int) (Required)

$unused_with_currency_symbol

(boolean) (Required)


Top ↑

Return

(string) $cost


Top ↑

Source

File: src/Tribe/RSVP.php

	public function trigger_get_cost( $cost, $post_id, $unused_with_currency_symbol ) {

		if (
			empty( $cost )
			&& tribe_events_has_tickets( get_post( $post_id ) )
		) {
			$cost = __( 'Free', 'event-tickets' );
		}

		return $cost;
	}

Top ↑

Changelog

Changelog
Version Description
4.10.2 Introduced.