WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#12158 closed enhancement (fixed)

Hook for wp_link_pages arguments

Reported by: greenshady Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9.1
Component: General Keywords: has-patch
Focuses: Cc:

Description

Every so often, I have a theme user that needs to change the output of wp_link_pages() to something that suits their site. Rather than having them edit each template file that calls this function, we could simply overwrite this using a filter hook.

As far as I know, there's no way to change this without literally opening a theme's templates and changing the parameters.

I propose adding the wp_link_pages_args filter hook, which only requires one extra line of code.

Attachments (1)

wp_link_pages.diff (386 bytes) - added by greenshady 4 years ago.
Adds wp_link_pages_args hook.

Download all attachments as: .zip

Change History (3)

greenshady4 years ago

Adds wp_link_pages_args hook.

comment:1 sivel4 years ago

  • Keywords has-patch added

comment:2 nacin4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13479]) Add filter to the args in wp_link_pages(). fixes #12158 props greenshady

Note: See TracTickets for help on using tickets.