Hooks::filter_single_event_details_venue_website_label( string $label, null|string|int $post_id = null )

Filter the website link label and change it for Single Event Classic Editor.

Use the following in functions.php to disable: remove_filter( ‘tribe_get_venue_website_link_label’, [ tribe( ‘events.views.v2.hooks’ ), ‘filter_single_event_details_venue_website_label’ ] );


Parameters #

$label

(string) (Required) The filtered label.

$post_id

(null|string|int) (Optional) The current post ID.

Default value: null


Top ↑

Return #

(string)


Top ↑

Source #

File: src/Tribe/Views/V2/Hooks.php

	public function filter_single_event_details_venue_website_label( $label, $post_id = null ) {
		// If not V2 or not Classic Editor, return the website url.
		if ( $this->is_v1_or_blocks( $post_id ) ) {
			return $label;
		}

		return sprintf(
			_x(
				'View %s Website',
				'Capitalized label for the venue website link.',
				'the-events-calendar'
			),
			tribe_get_venue_label_singular()
		);
	}

Top ↑

Changelog #

Changelog
Version Description
5.5.0 Introduced.