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.1

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
     
    				$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
     
    		$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: