// facetwp_result_count

Overview

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

Parameters

  • $output | string | The result count HTML
  • $params | array | An associative array of result count settings (see below)

$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 );

See Also