Event_Meta::get_video_source_text( WP_Post|null $event = null )
Returns the default text to be used for the linked button.
Contents
Parameters
- $event
-
(WP_Post|null) (Optional) The event we're editing.
Default value: null
Return
(string) The localized, placeholder text to be used for the video source input.
Source
File: src/Tribe/Event_Meta.php
public static function get_video_source_text( $event = null ) {
$event = tribe_get_event( $event );
$text = _x(
'Enter URL for YouTube, Vimeo, etc.',
'Default placeholder text for the virtual event URL input.',
'events-virtual'
);
/**
* Allows filtering of the default placeholder text for the URL field.
*
* @since 1.0.0
*
* @param string $text The current placeholder text.
*/
return apply_filters(
'tribe_events_virtual_video_source_placeholder_text',
$text,
$event
);
}
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |