Fixing a PHP snippet for Maps
-
Hey WP
I have a broken snippet, and I have no idea how to fix. Maybe someone knows php…
I am trying to display a custom Google Map. This is official code where I after days of G Map support have this working map url. It seems that this URL is not output into the browser. At least the URL is not there. Map should appear under txt Stores in the white box, so I am doing somth wrong. Others have this php working, why not here!?
add_filter( 'wcfm_google_map_api_url', function( $api_url, $api_key ) { $api_url = 'https://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge%2CNew+York%2CNY&zoom=13&size=600x300&maptype=roadmap&markers=color%3Ared%7Clabel%3AC%7C40.718217%2C-73.998284&key=MY-API-KEY-GOES-HERE&map_id=90c65ed61ac072ab'; return $api_url; }, 50, 2 );
Note: The map does get output as such. So map is there and URL is ok.
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.