Venue_View::get_view_more_title()

Returns the widget “view more” link title attribute.

Adds some context to the link for screen readers.


Return #

(string) The widget "view more" link title attribute.


Top ↑

Source #

File: src/Tribe/Views/V2/Views/Widgets/Venue_View.php

	public function get_view_more_title() {
		$venue_id  = $this->context->get( 'venue' );
		$venue_obj = tribe_get_venue_object( $venue_id );

		$text = sprintf(
			__( /* Translators: 1: lowercase plural event term 2: venue name */ 'View more %1$s at %2$s.', 'tribe-events-calendar-pro' ),
			tribe_get_event_label_plural_lowercase(),
			$venue_obj->post_title
		);

		return $text;
	}

Top ↑

Changelog #

Changelog
Version Description
5.3.0 Introduced.