Added date_start & date_end params to Activities shortcode

Switched get_activities to single args array param
This commit is contained in:
Justin Foell
2020-04-24 16:07:19 -05:00
parent 411f762865
commit b67ac210ba
6 changed files with 45 additions and 15 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class WPStrava_LatestMap {
$activities = array();
try {
$activities = $strava_activity->get_activities( $args['client_id'], $args['strava_club_id'] );
$activities = $strava_activity->get_activities( $args );
} catch ( WPStrava_Exception $e ) {
// If athlete_token is still set, warn about that first and foremost.
if ( isset( $args['athlete_token'] ) ) {