wp_link_pages_link filter-hook . WP 3.6.0
Filters the HTML output of individual page number links.
Usage
add_filter( 'wp_link_pages_link', 'filter_function_name_385', 10, 2 ); function filter_function_name_385( $link, $i ){ // filter... return $link; }
- $link(string)
- The page number HTML output.
- $i(int)
- Page number for paginated posts' page links.
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
wp-includes/post-template.php 972
$link = apply_filters( 'wp_link_pages_link', $link, $i );
wp-includes/post-template.php 986
$output .= apply_filters( 'wp_link_pages_link', $link, $prev );
wp-includes/post-template.php 996
$output .= apply_filters( 'wp_link_pages_link', $link, $next );