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
+3 -1
View File
@@ -4,7 +4,7 @@ Contributors: cmanon, jrfoell, lancewillett, dlintott, sebastianerb
Tags: strava, activity, bicycle, cycling, biking, running, run, swimming, swim, paddle, kayak, gps, shortcode, widget, plugin
Requires at least: 4.6
Tested up to: 5.4
Stable tag: 2.2.0
Stable tag: 2.3.0
Requires PHP: 5.3
License: GPLv2 or later
@@ -49,6 +49,8 @@ This also takes the same optional parameters as the [activity] shortcode above.
* quantity - number of activities to show.
* client_id - specify a different athlete (you can copy this value from https://www.strava.com/settings/api or the wp-strava settings page at /wp-admin/options-general.php?page=wp-strava-options).
* strava_club_id - Will display activity from the specified Strava club ID instead of an athlete.
* date_start - Will display activities after specified date - must be [PHP DateTime strtotime compatible](https://www.php.net/manual/en/datetime.formats.php).
* date_end - Will display activities before the specified date - must be [PHP DateTime compatible](https://www.php.net/manual/en/datetime.formats.php).
[latest_map] - shows a map of your latest activity. Takes the following optional parameters: