Filter by event_status (published or/and scheduled) the League Tables
This commit is contained in:
@@ -48,6 +48,13 @@ if ( $show_title && false === $title && $id ):
|
||||
$title = get_the_title( $id );
|
||||
endif;
|
||||
|
||||
//Check if we have event status sent from shortcode
|
||||
if ( isset( $show_published_events ) )
|
||||
$table->show_published_events = $show_published_events ;
|
||||
|
||||
if ( isset( $show_future_events ) )
|
||||
$table->show_future_events = $show_future_events ;
|
||||
|
||||
//Create a unique identifier based on the current time in microseconds
|
||||
$identifier = uniqid( 'table_' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user