next_comments_link_attributes хук-фильтр . WP 2.7.0
Filters the anchor tag attributes for the next comments page link.
Использование
add_filter( 'next_comments_link_attributes', 'filter_function_name_695' ); function filter_function_name_695( $attributes ){ // filter... return $attributes; }
- $attributes(строка)
- Attributes for the anchor tag.
Список изменений
С версии 2.7.0 | Введена. |
Где вызывается хук
next_comments_link_attributes
wp-includes/link-template.php 2898
return '<a href="' . esc_url( get_comments_pagenum_link( $nextpage, $max_page ) ) . '" ' . apply_filters( 'next_comments_link_attributes', '' ) . '>' . preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&$1', $label ) . '</a>';