Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#52530 closed enhancement (duplicate)

paginate_links() result filter

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

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

Download all attachments as: .zip

Change History (3)

@Tkama
5 years ago

@Tkama
5 years ago

#1 @sabernhardt
5 years ago

  • Component GeneralPosts, Post Types
  • Focuses template added
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed
  • Version trunk

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 5 years ago by sabernhardt (previous) (diff)
Note: See TracTickets for help on using tickets.