get_pagenum_link filter-hook . WP 2.5.0
Filters the page number link for the current request.
Usage
add_filter( 'get_pagenum_link', 'filter_function_name_9522', 10, 2 ); function filter_function_name_9522( $result, $pagenum ){ // filter... return $result; }
- $result(string)
- The page number link.
- $pagenum(int)
- The page number.
Changelog
Since 2.5.0 | Introduced. |
Since 5.2.0 | Added the $pagenum argument. |
Where the hook is called
get_pagenum_link
wp-includes/link-template.php 2300
$result = apply_filters( 'get_pagenum_link', $result, $pagenum );