VisionIntoDestiny

Filter Google Map arguments in the Map module

The fl_builder_map_args filter lets you add or change Google map arguments to filter the location on the map, add language parameters for WPML, or even change the key. Here's an example.. add_filter( 'fl_builder_map_args', function( $args, $settings ) { if ( defined( 'ICL_LANGUAGE_CODE' ) ) { $args['language'] = ICL_LANGUAGE_CODE; } return $args; }, 10, 2 ); .
Was this article helpful?

Still puzzling over something?

The agent has read this article — and everything around it. Ask a follow-up and it answers in seconds.