Tribe__Tickets_Plus__Commerce__Warnings::recurring_event_warning_msg()

Create Recurring Event Warning Message Label

Contents


Source

File: src/Tribe/Commerce/Warnings.php

	public function recurring_event_warning_msg() {
		if ( ! class_exists( 'Tribe__Events__Pro__Main' ) ) {
			return;
		}
		if ( ! function_exists( 'tribe_is_recurring_event' ) ) {
			return;
		}

		$warning = __( 'This is a recurring event. If you add tickets they will only show up on the next upcoming event in the recurrence pattern. The same ticket form will appear across all events in the series. Please configure your events accordingly.', 'event-tickets-plus' );
		?>
		<div
				class="recurring-warning tribe-dependent"
				data-depends="#tribe-tickets-warning"
				data-condition-is-checked
		>
			<span class="dashicons dashicons-warning"></span>
			<div class="recurring-warning-msg"><?php echo esc_attr( $warning ); ?></div>
		</div>
		<?php

	}

Top ↑

Changelog

Changelog
Version Description
4.6 Introduced.