FacetWP – custom map pins

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

add_filter( ‘facetwp_map_marker_args’, function( $args, $post_id ) {
$args[‘icon’] = ‘https://PATH/TO/YOUR/icon.png’;
return $args;
}, 10, 2 );

{{/gist}}