1. Home
  2. Docs
  3. Custom Code Samples
  4. Checkout Map
  5. Change default map markup code

Change default map markup code

When using this filter be aware that the map markup might change in future versions of the plugin.

function lpac_change_map_markup( $default_markup ){
	$default_markup; // Do something with the default markup
	
	$altered_markup = "<div class='lpac-map'></div>";
	
	return $altered_markup; // Be sure to return the altered markup.
}
add_filter( 'lpac_map_markup', 'lpac_change_map_markup' );
Was this article helpful to you? Yes No