get_pagenum_link
get_pagenum_link ( $pagenum = 1, $escape = true )
Parameters:- (int) pagenum Optional. Page number. Default 1.
- (bool) escape Optional. Whether to escape the URL for display, with esc_url(). If set to false, prepares the URL with sanitize_url(). Default true.
Returns:- (string) The link URL for the given page number.
Defined at: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Retrieves the link for a page number.