Tribe__Events__Editor__Template::set_notices()

Set notices


Return

(void)


Top ↑

Source

File: src/Tribe/Editor/Template.php

	public function set_notices() {
		$events_label_singular_lowercase = tribe_get_event_label_singular_lowercase();

		if ( ! tribe_is_showing_all() && tribe_is_past_event() ) {
			Tribe__Notices::set_notice( 'event-past', sprintf( esc_html__( 'This %s has passed.', 'the-events-calendar' ), $events_label_singular_lowercase ) );
		}
	}

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.