wp_link_pages filter-hookWP 3.6.0

Filters the HTML output of page links for paginated posts.

Usage

add_filter( 'wp_link_pages', 'wp_kama_link_pages_filter', 10, 2 );

/**
 * Function for `wp_link_pages` filter-hook.
 * 
 * @param string       $output HTML output of paginated posts' page links.
 * @param array|string $args   An array or query string of arguments. See wp_link_pages() for information on accepted arguments.
 *
 * @return string
 */
function wp_kama_link_pages_filter( $output, $args ){

	// filter...
	return $output;
}
$output(string)
HTML output of paginated posts' page links.
$args(array|string)
An array or query string of arguments. See wp_link_pages() for information on accepted arguments.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_link_pages()
wp_link_pages
wp-includes/post-template.php 1012
$html = apply_filters( 'wp_link_pages', $output, $args );

Where the hook is used in WordPress

Usage not found.