X Features Cars Demo Power Plants Demo State Parks Demo Site Showcase Docs Tutorials Add-ons Buy

facetwp_result_count

Overview

This filter lets you modify how the result count (e.g. “1-10 of 234”) appears.

Parameters

$params = array(
    'lower' => 1,
    'upper' => 10,
    'total' => 234
);

Usage

add_filter( 'facetwp_result_count', function( $output, $params ) {
    $output = $params['lower'] . '-' . $params['upper'] . ' of ' . $params['total'] . ' results';
    return $output;
}, 10, 2 );