[wp-trac] [WordPress Trac] #12158: Hook for wp_link_pages arguments

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 7 06:17:43 UTC 2010


#12158: Hook for wp_link_pages arguments
-------------------------+--------------------------------------------------
 Reporter:  greenshady   |       Owner:       
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:  3.0  
Component:  General      |     Version:  2.9.1
 Severity:  normal       |    Keywords:       
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12158>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list