get_comments_pagenum_link
Filters the comments page number link for the current request.
Usage
add_filter( 'get_comments_pagenum_link', 'wp_kama_get_comments_pagenum_link_filter' );
/**
* Function for `get_comments_pagenum_link` filter-hook.
*
* @param string $result The comments page number link.
*
* @return string
*/
function wp_kama_get_comments_pagenum_link_filter( $result ){
// filter...
return $result;
}
- $result(string)
- The comments page number link.
Changelog
| Since 2.7.0 | Introduced. |
Where the hook is called
get_comments_pagenum_link
wp-includes/link-template.php 3113
return apply_filters( 'get_comments_pagenum_link', $result );