Skip to content

Instantly share code, notes, and snippets.

@mgibbs189
Last active March 11, 2022 18:07
Show Gist options
  • Save mgibbs189/7a8a2e70315b178e9cef to your computer and use it in GitHub Desktop.
Save mgibbs189/7a8a2e70315b178e9cef to your computer and use it in GitHub Desktop.
FacetWP - change proximity placeholder text
<?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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment