Make the Date field optional in Event List template and Shortcode

This commit is contained in:
savvasha
2018-11-09 20:45:38 +02:00
parent f34d911b21
commit 41755701a4
3 changed files with 9 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ class SP_Meta_Box_Calendar_Columns {
}
$columns = array();
$columns['date'] = __( 'Date', 'sportspress' );
if ( 'teams' === $title_format ) {
$columns[ 'event' ] = __( 'Home', 'sportspress' ) . ' | ' . __( 'Away', 'sportspress' );