首页 WordPress函数大全 get_pagenum_link()

get_pagenum_link()

2020-05-01 / 3704阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

Retrieves the link for a page number.

描述

参数

$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

返回

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

大家谈论
    我的见解