WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#52530 closed enhancement (duplicate)

paginate_links() result filter

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

Description

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 8 months ago.
52530-2.diff (1.6 KB) - added by Tkama 8 months ago.

Download all attachments as: .zip

Change History (3)

@Tkama
8 months ago

@Tkama
8 months ago

#1 @sabernhardt
8 months 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.

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.

Version 0, edited 8 months ago by sabernhardt (next)
Note: See TracTickets for help on using tickets.