Overview

This filter lets you customize the choices for the old per page box.

Parameters

  • $options | array | An associative array of integers

Usage

How to use custom PHP code?

PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More info

add_filter( 'facetwp_per_page_options', function( $options ) { return [ 5, 10, 25, 50, 100, 250 ]; });

More examples

See also

Last updated: May 2, 2023