Created
June 20, 2018 15:47
-
-
Save mgibbs189/0eeb1731963661c20aa18885bcece071 to your computer and use it in GitHub Desktop.
Unescape HTML facet labels
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_facet_html', function( $html, $args ) { | |
if ( 'langdurige_opsluiting' == $args['facet']['name'] ) { | |
$html = htmlspecialchars_decode( $html ); | |
} | |
return $html; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment