Widget_Featured_Venue::get_default_venue_id()
Get the first alphabetical venue id as the default.
Return
(int|null) $venue_id The venue id for the default venue.
Source
File: src/Tribe/Views/V2/Widgets/Widget_Featured_Venue.php
public function get_default_venue_id() {
$venue_id = tribe_venues()
->fields( 'ids' )
->order_by( 'post_title', 'ASC' )
->first();
/**
* Filter the default venue for the Featured Venue Widget.
*
* @since 5.3.0
*
* @param int|null $venue_id The venue id for the default venue.
* @param Widget_Featured_Venue $this This featured widget venue post object.
*/
return apply_filters( 'tribe_events_widget_featured_venue_default_venue_id', $venue_id, $this );
}
Changelog
| Version | Description |
|---|---|
| 5.3.0 | Introduced. |