For developers
WP-CLI
Section titled “WP-CLI”wp rpkit demo load | remove # the six demo runswp rpkit demo events | events-remove # the 15 demo eventswp rpkit demo page # create the Runs pageWhat’s stored where
Section titled “What’s stored where”| Thing | Where |
|---|---|
| Runs | Post type rpkit_run, at /runs/… |
| Events | Post type rpkit_event, at /events/…, archive at /races/ |
| Event taxonomies | Terrain, Countries, Continents |
| Settings | Option rpkit_settings (and rpkit_modules for what’s switched on) |
| Route Maps settings | Option rpmap_settings |
| Blocks | rpkit/… and rpmap/map |
| CSS classes and variables | Start rpkit- / --rpkit- and rpmap- / --rpmap- |
Filters
Section titled “Filters”The RacerPacer plugin:
| Filter | What it changes |
|---|---|
racerpacer_runs_base |
The /runs/ address |
racerpacer_runs_directions_url |
Where Get directions goes (Google Maps by default) |
racerpacer_runs_pace_units |
The pace units offered |
racerpacer_runs_schedule_cache_seconds |
How long the schedule is cached |
racerpacer_runs_calendar_entries |
What the calendar feed carries |
racerpacer_runs_routes_enabled, racerpacer_runs_location_maps |
Routes and location maps on or off |
racerpacer_runs_gpx_max_bytes |
The largest GPX upload |
racerpacer_runs_inherit_style, racerpacer_runs_load_styles |
Use the theme’s colours; load the kit’s CSS at all |
racerpacer_runs_events_css_when_used |
In a block theme, load the event CSS only on pages with an event block |
racerpacer_runs_event_page_in_content |
Whether the plugin draws event pages in themes without a template |
racerpacer_runs_event_map_lines |
The course lines on an event’s map |
racerpacer_runs_run_page_map, racerpacer_runs_auto_details, racerpacer_runs_page_shows_dates, racerpacer_runs_page_shows_schedule |
What a run’s page and the Runs page show by themselves |
racerpacer_runs_meta_description |
The meta description on runs and the home page (skipped when an SEO plugin is active) |
Route Maps:
| Filter | What it changes |
|---|---|
racerpacer_maps_looks |
The map styles offered |
racerpacer_maps_style_url |
The style used |
racerpacer_maps_credit |
The map credit line |
racerpacer_maps_directions_url |
Where a place’s Directions link goes |
racerpacer_maps_geocode_enabled |
Find on map on or off |
racerpacer_maps_clean_gpx |
Return false to keep uploaded GPX files as they arrived |
Route Maps functions
Section titled “Route Maps functions”\RacerPacer_Maps\map_box_html()returns a map alone, for your own layout;\RacerPacer_Maps\map_html()the whole component.\RacerPacer_Maps\enqueue_pin_picker()puts Find on map and a click-and-drag map after any pair of latitude and longitude inputs on an edit screen.\RacerPacer_Maps\summarise_gpx()reads a GPX into its line, distance, climb and elevation profile.- The map colours are four CSS variables:
--rpmap-accent,--rpmap-on-accent,--rpmap-lineand--rpmap-radius.
Coming from RaceDay Model and RaceDay Features
Section titled “Coming from RaceDay Model and RaceDay Features”Versions up to 0.2 of the event kit were two plugins, RaceDay Model and RaceDay Features. To move over: activate the RacerPacer plugin, deactivate the two RaceDay plugins, then tick Events in the settings. Your events, their pages and their blocks stay as they are. Sites from before 0.4.0 are moved to the rpkit names by themselves on update; a shortcode or class typed into a theme file is the one thing it can’t reach.
The code is GPL-2.0-or-later. If you build something on it, I’d like to see it: get in touch.