paginate_links

paginate_links

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('paginate_links') is found 3 times:

  • /wp-includes/general-template.php line 4598

    * @since 3.0.0
    *
    * @param string $link The paginated link URL.
    */
    esc_url( apply_filters( ‘paginate_links’, $link ) ),
    $args[‘prev_text’]
    );
    endif;

    for ( $n = 1; $n <= $total; $n++ ) : if ( $n == $current ) : [/php]

  • /wp-includes/general-template.php line 4624
    4621
    4622
    4623
    4624
    4625
    4626
    4627
    4628
    4629
    4630
        $page_links[] = sprintf(
            '<a class="page-numbers" href="%s">%s</a>',
            /** This filter is documented in wp-includes/general-template.php */
            esc_url( apply_filters( 'paginate_links', $link ) ),
            $args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number']
        );
     
        $dots = true;
    elseif ( $dots && ! $args['show_all'] ) :
        $page_links[] = '<span class="page-numbers dots">' . __( '&hellip;' ) . '</span>';
  • /wp-includes/general-template.php line 4648
    4645
    4646
    4647
    4648
    4649
    4650
    4651
    4652
    4653
    4654
        $page_links[] = sprintf(
            '<a class="next page-numbers" href="%s">%s</a>',
            /** This filter is documented in wp-includes/general-template.php */
            esc_url( apply_filters( 'paginate_links', $link ) ),
            $args['next_text']
        );
    endif;
     
    switch ( $args['type'] ) {
        case 'array':

See this hook used in plugins: