tribe_community_events_series_select_menu( int|null $event_id = null )
Echo Series select menu
Contents
Parameters
- $event_id
-
(int|null) (Optional) (optional)
Default value: null
Source
File: src/functions/template-tags.php
function tribe_community_events_series_select_menu( $event_id = null ) { if ( ! class_exists( '\TEC\Events_Pro\Custom_Tables\V1\Series\Post_Type' ) ) { return; } $series = \TEC\Events_Pro\Custom_Tables\V1\Series\Post_Type::POSTTYPE; if ( ! $event_id ) { global $post; if ( isset( $post->post_type ) && $post->post_type === Tribe__Events__Main::POSTTYPE ) { $event_id = $post->ID; } elseif ( isset( $post->post_type ) && $post->post_type === $series ) { return; } } /** * @since 4.10.0 */ do_action( 'tribe_series_table_top', $event_id ); }
Changelog
Version | Description |
---|---|
4.10.0 | Introduced. |