Skip to content

Filter and action hooks

Fabian Wolf edited this page Jan 19, 2018 · 1 revision

Available filter and action hooks

All filter and action hooks are normally prefixed with the plugin prefix, i.e. ui_leaflet_.

Filter hooks

  • ui_leaflet_load_leaflet_version' - load a (local) specific Leaflet.js version from the assets` directory
  • ui_leaflet_css_url - Change the URL for the Leaflet.js CSS file, eg. to use a CDN-hosted version
  • ui_leaflet_css_url - Dito, but for the JavaScript file
  • ui_leaflet_load_in_footer - Load assets in the footer. Defaults to TRUE. If set to FALSE, the assets will be loaded in the header
  • ui_leaflet_get_options - fetch default settings or possible custom options. Used for a future admin screen.
  • ui_leaflet_get_routing_services - Fetches an array of known routing services. Look up the implementation in the source code for more information (class method get_routing_services)

Action hooks

None so far.

Clone this wiki locally