Last active
April 19, 2018 16:08
-
-
Save djrmom/4a25f2eff223f24f97718363d4259758 to your computer and use it in GitHub Desktop.
facetwp filter html
This file contains hidden or 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( $output, $params ) { | |
if ( 'my_facet' == $params['facet']['name'] ) { // change 'my_facet' to name of your facet | |
$output = str_replace ( '</select>' , '</select><button onclick="FWP.refresh()">>></button>' , $output ); | |
} | |
return $output; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment