函数原型
get_previous_posts_page_link(): string|void
函数描述
Retrieves the previous posts page link.
是否弃用
未弃用
函数参数
无
函数返回值
string|void The link for the previous posts page.
函数位置
File: wp-includes/link-template.php.
函数源码
function get_previous_posts_page_link() {
global $paged;
if ( ! is_single() ) {
$nextpage = (int) $paged - 1;
if ( $nextpage < 1 ) {
$nextpage = 1;
}
return get_pagenum_link( $nextpage );
}
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.0.10 | Introduced. |

