wp_link_pages_link хук-фильтр . WP 3.6.0
Filters the HTML output of individual page number links.
Использование
add_filter( 'wp_link_pages_link', 'filter_function_name_7711', 10, 2 ); function filter_function_name_7711( $link, $i ){ // filter... return $link; }
- $link(строка)
- The page number HTML output.
- $i(число)
- Page number for paginated posts' page links.
Список изменений
С версии 3.6.0 | Введена. |
Где вызывается хук
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 );