FacetWP – change proximity placeholder text

mgibbs189

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

function change_proximity_label( $translated_text ) {
if ( ‘Enter location’ == $translated_text ) {
return ‘My new placeholder text’;
}
return $translated_text;
}
add_filter( ‘gettext’, ‘change_proximity_label’ );
{{/gist}}