<?php
/**
* replace "Update" for search button with different text
* change 'autocomplete_facet' to the name of your facet
* Note that this text is also translation ready and could be
* modified using internationalization functions as well
*/
add_filter( 'facetwp_facet_html', function( $output, $params ) {
if ( 'autocomplete_facet' == $params['facet']['name'] ) {
$output = str_replace( 'Update', 'Search', $output );
}
return $output;
}, 10, 2 );