Hooks::filter_single_event_details_event_website_label( string $label, null|string|int $post_id = null )
Filter the website link label and change it for Single Event Classic Editor.
Contents
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_website_label’ ] );
Parameters
- $label
-
(string) (Required) The filtered label.
- $post_id
-
(null|string|int) (Optional) The current post ID.
Default value: null
Return
(string)
Source
File: src/Tribe/Views/V2/Hooks.php
public function filter_single_event_details_event_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 event website link.', 'the-events-calendar' ), tribe_get_event_label_singular() ); }
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |