Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#12158 closed enhancement (fixed)

Hook for wp_link_pages arguments

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


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 14 years ago.
Adds wp_link_pages_args hook.

Download all attachments as: .zip

Change History (3)

14 years ago

Adds wp_link_pages_args hook.

#1 @sivel
14 years ago

  • Keywords has-patch added

#2 @nacin
14 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.