WPDev.one
Core Function
View Source on Trac ↗

get_pagenum_link()

get_pagenum_link( mixed $pagenum = 1, mixed $escape = true )

Retrieves the link for a page number.

Parameters 1 required

Name / Type Description
$pagenum
int

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.

Required

Return Value

(string)
The link URL for the given page number.

Function Information

Since Version
1.5.0
Source File
wp-includes/link-template.php
Advertisement