Filter: bricks/paginate_links_args
Filters the arguments passed to the WordPress paginate_links() function when generating pagination output. This allows you to customize the pagination structure, text labels, and other settings.
Parameters
Section titled “Parameters”$args(array): Array of arguments forpaginate_links().
Example usage
Section titled “Example usage”add_filter( 'bricks/paginate_links_args', function( $args ) { // Example: Change the "Previous" and "Next" text $args['prev_text'] = 'Previous'; $args['next_text'] = 'Next';
// Example: Change the number of adjacent page links shown $args['mid_size'] = 3;
return $args;} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.