Listify fix – include “places” library into maps/api/ JS call

mgibbs189

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

// Add to your (child) theme’s functions.php
add_filter( ‘listify_google_maps_api_url’, function( $url, $args ) {
$url = str_replace( ‘api/js?’, ‘api/js?libraries=places&’, $url );
return $url;
}, 10, 2 );

{{/gist}}