WP GPX Maps 1.16.01 has 2 actions and 13 filters, read directly from its source code on Nov 23, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WP GPX Maps fires an action
add_action( 'wpgpxmaps_enqueue_scripts', function() {
// Your code runs here.
}, 10, 1 );
// Change a value WP GPX Maps is about to use
add_filter( 'wpgpxmaps_admin_tabs', function( $tabs ) {
// Change $tabs here.
return $tabs;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
Changes by version
1.16.00 → 1.16.01 · Nov 23, 2026 · 0 added, 0 removed
No hooks were added or removed in this release.
1.15.00 → 1.16.00 · Nov 23, 2026 · 2 added, 0 removed
Added
1.14.03 → 1.15.00 · Nov 20, 2026 · 1 added, 0 removed
Added
1.14.01 → 1.14.03 · Nov 18, 2026 · 0 added, 0 removed
No hooks were added or removed in this release.
All hooks
-
/** * Prints the content of a tab added with the wpgpxmaps_admin_tabs filter. */ do_action( "wpgpxmaps_admin_tab_{$tab}" ); -
/** * Filters the tabs of the WP GPX Maps admin page. Add-ons print their tab with * the action wpgpxmaps_admin_tab_{tab}. */ apply_filters( 'wpgpxmaps_admin_tabs', $tabs ); -
/** * Filters the shortcode attributes built from the block, e.g. for block * attributes added by an add-on. */ apply_filters( 'wpgpxmaps_block_shortcode_atts', $atts, $attributes ); -
/** * Smallest elevation change, in meters, counted in the total climb and descent * (GPS noise filter). 0 adds up every change, as before version 1.13.04. */ apply_filters( 'wpgpxmaps_climb_threshold', 5 ); -
/** * Filters the shortcode attributes built from the Elementor widget, e.g. for * options added by an add-on. */ apply_filters( 'wpgpxmaps_elementor_shortcode_atts', $atts, $settings ); -
/** * Fires after the map scripts are enqueued on the front end, for add-on * scripts and styles. */ do_action( 'wpgpxmaps_enqueue_scripts' ); -
/** * Filters whether the map starts only when it gets near the screen (default) * or as soon as the page has loaded. */ apply_filters( 'wpgpxmaps_lazy_load', true, $attr ); -
/** * Filters whether the map style is loaded in the head of the current page. * Return true for maps added in a way the plugin can't detect, to avoid a * flash of unstyled map. */ apply_filters( 'wpgpxmaps_load_assets', $found ); -
/** * Filters extra data passed to the map script (params.extra), read by add-ons * in the "wpgpxmaps:ready" event. */ apply_filters( 'wpgpxmaps_map_extra', array(), $attr ); -
/** * Filters the HTML of a map (map, chart, summary and download link). */ apply_filters( 'wpgpxmaps_map_html', $output, $attr, $r ); -
/** * Filters the shortcode (and block) attributes before they are read, e.g. to * add defaults or new attributes. */ apply_filters( 'wpgpxmaps_shortcode_atts', $attr ); -
/** * Filters the schema.org structured data (JSON-LD) of a map. Return an empty * value to leave it out. */ apply_filters( 'wpgpxmaps_structured_data', $data, $info, $attr ); -
/** * Filters the text description of a track, read by screen readers, search * engines and AI assistants. */ apply_filters( 'wpgpxmaps_track_description', wpgpxmaps_describeTrack( $info, $name, $unit_of_measure ), $info, $attr ); -
/** * Filters the facts of the track added to the trip facts: key => array( label, * value ). */ apply_filters( 'wpgpxmaps_travel_engine_facts', $facts, $info, $trip_id ); -
/** * Filters the [sgpx] attributes of the map on a WP Travel Engine trip page * (e.g. summary="true", mtype="OSM9"). */ apply_filters( 'wpgpxmaps_travel_engine_shortcode_atts', array( 'gpx' => $settings['gpx'] ), $trip_id );
Generated from WP GPX Maps's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: