Linux 软件免费装
Banner图

tributors: mirce

开发者
更新时间 2026年3月20日 06:47
捐献地址: 去捐款
PHP版本: 5.2 及以上
WordPress版本: 6.8
版权: GPLv2 or later

标签

import fitness webhooks activities strava

下载

1.0.2 1.0.4 1.0.5 1.0.7 1.0.8 1.0.9 1.0.1 1.0.10 1.0.11 1.0.12 1.0.3 1.0.6

详情介绍:

NMR Strava activities imports athlete activities into your WordPress site as soon as Strava records them—no slow polling. Data is stored locally; developers can react with actions and filters for custom workflows, leaderboards, or integrations. Why webhooks? Strava can notify your site when an activity is created or deleted. This plugin subscribes to those events, then fetches full activity details with OAuth and saves them to custom database tables. You will need: Configure the plugin: WordPress admin → Settings → Strava NMR After saving, use Activate Strava Webhook. On success, Plugin status shows something like: Strava webhook subscription id = 109463. Data and privacy Activities and tokens are stored in your WordPress database. See Privacy Notices below. For GDPR or similar obligations, ensure your site policy explains this processing. Developer hooks When an activity is saved or removed, other code can listen: do_action('strava_nmr_activity_changed', 'update', $activity_data); do_action('strava_nmr_activity_changed', 'delete', $payload); Filter which activities are saved using the activity type (single string, e.g. Run): php function nmr_example_save_only_runs( $activity_type ) { if ( strcasecmp( 'Run', $activity_type ) === 0 || strcasecmp( 'VirtualRun', $activity_type ) === 0 ) { return $activity_type; } return false; } add_filter( 'nmr_strava_save_activity', 'nmr_example_save_only_runs' ); Filter using the full Strava activity array (return false to skip import): php add_filter( 'nmr_strava_save_activity_full', function ( $activity ) { if ( ! empty( $activity['manual'] ) ) { return false; } return $activity; } ); Supported Strava activity types include: AlpineSki, BackcountrySki, Canoeing, Crossfit, EBikeRide, Elliptical, Golf, Handcycle, Hike, IceSkate, InlineSkate, Kayaking, Kitesurf, NordicSki, Ride, RockClimbing, RollerSki, Rowing, Run, Sail, Skateboard, Snowboard, Snowshoe, Soccer, StairStepper, StandUpPaddling, Surfing, Swim, Velomobile, VirtualRide, VirtualRun, Walk, WeightTraining, Wheelchair, Windsurf, Workout, Yoga. Shortcodes Official listing Install from WordPress.org/plugins/nmr-strava-activities. More info: Plugin URI. If this plugin saves you time, consider making a donation. Privacy Notices This plugin stores data received from Strava—which may include personal information—in your site’s database. You are responsible for describing this in your privacy policy and for any consent or legal basis required in your jurisdiction.

安装:

  1. Install from the plugin directory or upload the nmr-strava-activities folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Create a Strava API application and configure Settings → Strava NMR.
  4. Add [strava_nmr] to a public page; set that page’s URL as Redirect URI in Strava and in the plugin.
  5. Save settings, then click Activate Strava Webhook and confirm Plugin status shows a subscription id.

屏幕截图:

  • Placeholder: Example of activity data / `[strava_nmr_table]` output (replace with a real screenshot on WordPress.org).

常见问题:

Do I need a Strava API application?

Yes. Create one at strava.com/settings/api. You need the Client ID, Client Secret, and the Redirect URI must match the page where you use the shortcode.

Why must the Redirect URI match exactly?

OAuth requires the same redirect URL during authorization that you registered with Strava. A mismatch causes “invalid redirect” or similar errors when users connect.

What is the webhook callback URL for?

Strava sends HTTP notifications to that URL (your site’s admin-ajax.php with action=nmr-strava-callback). You normally leave the default value. It must be reachable over HTTPS in production.

What is the verify token?

A shared secret between your site and Strava during webhook subscription. It can be any string you choose; use the same value in the plugin and when Strava validates the subscription (GET challenge).

Webhooks vs polling

This plugin uses webhooks so new activities are processed when Strava pushes an event. You are not required to run a cron job to poll Strava for new data.

Does this work on multisite?

The plugin can be activated per site. Options and tables are per-site ($wpdb prefix). If you use get_site_option / update_option inconsistently for version checks, consult a developer for multisite edge cases.

Activities not appearing

Check that the webhook is active (subscription id in Plugin status), the athlete has connected via your site, Strava sent a create event, and your filters (nmr_strava_save_activity / nmr_strava_save_activity_full) do not return false for that activity.

GDPR and privacy

You store Strava-derived data locally. Disclose this to users and athletes; obtain consent where required. See Privacy Notices above.

Where do I get support?

Use the WordPress.org support forum for this plugin. See docs/SUPPORT.md in the plugin package for maintainer notes (response rhythm, reviews).

更新日志:

1.0.12 1.0.11 1.0.10 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0