W3cubDocs

/WordPress

apply_filters( 'get_pagenum_link', string $result, int $pagenum )

Filters the page number link for the current request.

Parameters

$result

(string) The page number link.

$pagenum

(int) The page number.

Source

File: wp-includes/link-template.php

View on Trac

Changelog

Version Description
5.2.0 Added the $pagenum argument.
2.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_pagenum_link