Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#52530 closed enhancement (duplicate)

paginate_links() result filter

Reported by: tkama's profile Tkama Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: template Cc:


There is no way to change result HTML for:

  • the_posts_pagination()
  • get_the_posts_pagination()
  • paginate_comments_links()
  • paginate_links()

It's better to give this opportunity by adding corresponding filter, see attached .diff file.

Attachments (2)

52530.diff (1.1 KB) - added by Tkama 3 years ago.
52530-2.diff (1.6 KB) - added by Tkama 3 years ago.

Download all attachments as: .zip

Change History (3)

3 years ago

3 years ago

#1 @sabernhardt
3 years ago

  • Component changed from General to Posts, Post Types
  • Focuses template added
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version trunk deleted

Hi @Tkama!

Changeset [49976] added a filter in trunk, to be included in the 5.7 release. After updating your SVN, please try using the paginate_links_output filter. (You could also use the 5.7 beta instead of SVN.)

If it is not adequate, please add a comment on ticket #44018. And if the filter meets your needs, it would help to have an example (or more than one) for the dev note.

Last edited 3 years ago by sabernhardt (previous) (diff)
Note: See TracTickets for help on using tickets.