[wp-trac] [WordPress Trac] #53859: Add a filter hook to modify the paginate links arguments

WordPress Trac noreply at wordpress.org
Mon Aug 2 07:35:35 UTC 2021


#53859: Add a filter hook to modify the paginate links arguments
-----------------------------+-----------------------------
 Reporter:  ibachal          |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Permalinks       |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 A filter hook to modify arguments in the function paginate_links()

 https://developer.wordpress.org/reference/functions/paginate_links/

 This filter hook can be added as below:

 Current:

 {{{
 $args = wp_parse_args( $args, $defaults );
 }}}


 After:

 {{{
 $args = apply_filters( 'paginate_links_args', wp_parse_args( $args,
 $defaults ) );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53859>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list