#17: paginate_links

The paginate_links filter allows you to modify the current pagination link. Since no context is passed to the filter, it will need to be handled in your callback unless the intent is to globally affect pagination links.

It is evaluated in paginate_links() in the wp-includes/general-template.php file.

paginate_links accepts a single argument in the form a string containing the paginated link.


There is no example for this filter yet. Submit one.

One idea might to pass a custom query var for certain contexts.