get_comments_pagenum_link
Filter HookDescription
Filters the comments page number link for the current request.Hook Information
File Location |
wp-includes/link-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3104 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$result
|
The comments page number link. |
Usage Examples
Basic Usage
<?php
// Hook into get_comments_pagenum_link
add_filter('get_comments_pagenum_link', 'my_custom_filter', 10, 1);
function my_custom_filter($result) {
// Your custom filtering logic here
return $result;
}
Source Code Context
wp-includes/link-template.php:3104
- How this hook is used in WordPress core
<?php
3099 *
3100 * @since 2.7.0
3101 *
3102 * @param string $result The comments page number link.
3103 */
3104 return apply_filters( 'get_comments_pagenum_link', $result );
3105 }
3106
3107 /**
3108 * Retrieves the link to the next comments page.
3109 *
PHP Documentation
<?php
/**
* Filters the comments page number link for the current request.
*
* @since 2.7.0
*
* @param string $result The comments page number link.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/link-template.php
Related Hooks
Related hooks will be displayed here in future updates.