Skip to content

Instantly share code, notes, and snippets.

@rafaehlers
Created March 3, 2017 17:30
Show Gist options
  • Save rafaehlers/3e1612df187b097aee2d9de5fdd535d1 to your computer and use it in GitHub Desktop.
Save rafaehlers/3e1612df187b097aee2d9de5fdd535d1 to your computer and use it in GitHub Desktop.
GravityView Maps code to change the 'Map It' text using the gravityview_map_link filter
add_filter( 'gravityview_map_link', 'gv_change_map_it', 10, 5 );
function gv_change_map_it( $link, $address, $url ){
$link = str_replace('Map It','View on Google Maps',$link);
return $link;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment