Last active
April 30, 2018 06:45
-
-
Save mgibbs189/b0c7d1d6f304985b96c464ef461259f5 to your computer and use it in GitHub Desktop.
Override the expand / collapse icons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
when I used this filter, it prints the whole thing like "< span >expand< /span >", is there anyway we can skip this?
Thank you