FacetWP – custom slider step sizes

mgibbs189

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

function custom_slider_steps( $output, $params ) {
$output[‘settings’][‘YOUR_SLIDER_FACET_NAME’][‘range’] = array(
‘min’ => array( 0.001 ),
‘25%’ => array( 0.01, 0.01 ),
‘50%’ => array( 1, 1 ),
‘75%’ => array( 100, 100 ),
‘max’ => array( 250000 )
);
return $output;
}
add_filter( ‘facetwp_render_output’, ‘custom_slider_steps’, 10, 2 );

{{/gist}}