Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
facetwp custom slider format
/** custom number format for a slider facet
** change_me needs to be changed to the name of the slider facet
add_filter( 'facetwp_render_output', function( $output, $params ) {
if ( isset( $output['settings']['change_me'] ) ) {
$output['settings']['change_me']['format'] = '0,0.0000';
return $output;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.