Filter: bricks/paginate_links_args
Filter: bricks/paginate_links_args
Section titled “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 page helpful?