paginate_links filter-hookWP 3.0.0

Filters the paginated links for the given archive pages.

Usage

add_filter( 'paginate_links', 'wp_kama_paginate_links_filter' );

/**
 * Function for `paginate_links` filter-hook.
 * 
 * @param string $link The paginated link URL.
 *
 * @return string
 */
function wp_kama_paginate_links_filter( $link ){

	// filter...
	return $link;
}
$link(string)
The paginated link URL.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

paginate_links()
paginate_links
wp-includes/general-template.php 4567
esc_url( apply_filters( 'paginate_links', $link ) ),
wp-includes/general-template.php 4593
esc_url( apply_filters( 'paginate_links', $link ) ),
wp-includes/general-template.php 4617
esc_url( apply_filters( 'paginate_links', $link ) ),

Where the hook is used in WordPress

Usage not found.