Add player parameter to event calendar shortcodes
This commit is contained in:
@@ -20,6 +20,7 @@ $defaults = array(
|
||||
'season' => null,
|
||||
'venue' => null,
|
||||
'team' => null,
|
||||
'player' => null,
|
||||
'number' => -1,
|
||||
'show_team_logo' => get_option( 'sportspress_event_blocks_show_logos', 'yes' ) == 'yes' ? true : false,
|
||||
'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false,
|
||||
@@ -54,6 +55,8 @@ if ( $venue )
|
||||
$calendar->venue = $venue;
|
||||
if ( $team )
|
||||
$calendar->team = $team;
|
||||
if ( $player )
|
||||
$calendar->player = $player;
|
||||
if ( $order != 'default' )
|
||||
$calendar->order = $order;
|
||||
$data = $calendar->data();
|
||||
|
||||
Reference in New Issue
Block a user