wp-plugin-leaflet-map icon indicating copy to clipboard operation
wp-plugin-leaflet-map copied to clipboard

resolves #248 - adds filter for geojson on each feature

Open bozdoz opened this issue 1 year ago • 1 comments

example in functions.php:

<?php

function onEachFeature($onEachFeature) {
  return "function onEachFeature(feature, layer) { console.log(feature); }";
}

add_filter('leaflet_map_geojson_onEachFeature', 'onEachFeature', 10, 3);

bozdoz avatar Mar 05 '24 04:03 bozdoz