Override the expand / collapse icons

mgibbs189

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

add_filter( ‘facetwp_assets’, function( $assets ) {
FWP()->display->json[‘expand’] = ‘<span>expand</span>’;
FWP()->display->json[‘collapse’] = ‘<span>collapse</span>’;

// Return the same thing (since we’re hijacking this hook)
return $assets;
});

{{/gist}}