get_pagenum_link

Advertisement

Summery Summery

Retrieves the link for a page number.

Syntax Syntax

get_pagenum_link( int $pagenum = 1, bool $escape = true )

Parameters Parameters

$pagenum

(int) (Optional) Page number.

Default value: 1

$escape

(bool) (Optional) Whether to escape the URL for display, with esc_url(). Defaults to true. Otherwise, prepares the URL with esc_url_raw().

Default value: true

Return Return

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

Source Source

File: wp-includes/link-template.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.