facetwp change map filtering button text

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php
/**
** modify text for map filtering button
**/

add_filter( ‘gettext’, function ( $translated_text, $untranslated_text, $domain ) {
if ( $translated_text == ‘Enable filtering’ && ‘fwp-map’ == $domain ) {
$translated_text = ‘Other text’;
}
return $translated_text;
}, 10, 3 );
{{/gist}}