Filter by event_status (published or/and scheduled) the League Tables

This commit is contained in:
savvasha
2019-09-20 11:47:17 +03:00
parent 7bc3e645c8
commit bc609c245f
4 changed files with 69 additions and 2 deletions

View File

@@ -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_' );