Make WordPress Core

Opened 2 years ago

Last modified 6 months ago

#53859 new feature request

Add a filter hook to modify the paginate links arguments

Reported by: ibachal's profile ibachal Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Permalinks Keywords:
Focuses: Cc:

Description

A filter hook to modify arguments in the function paginate_links()

https://developer.wordpress.org/reference/functions/paginate_links/

This filter hook can be added as below:

Current:

$args = wp_parse_args( $args, $defaults );

After:

$args = apply_filters( 'paginate_links_args', wp_parse_args( $args, $defaults ) );

Change History (2)

#1 @sabernhardt
2 years ago

  • Version trunk deleted

#2 @webmandesign
6 months ago

Hi everyone,

I'm all for this too. I build accessible themes and would appreciate to manipulate pagination args for improved accessibility. Currently I can only manipulate the output HTML, which is not ideal.

Any feedback on this? Or is this ticket lost in the past?

Note: See TracTickets for help on using tickets.