get_next_posts_page_link() WP 2.0.10
Retrieves the next posts page link.
Backported from 2.1.3 to 2.0.10.
Хуков нет.
Возвращает
Строку/null. The link URL for next posts page.
Использование
get_next_posts_page_link( $max_page );
- $max_page(число)
- Max pages.
Заметки
- Global. Число. $paged
Список изменений
С версии 2.0.10 | Введена. |
Код get_next_posts_page_link() get next posts page link WP 5.6.2
function get_next_posts_page_link( $max_page = 0 ) {
global $paged;
if ( ! is_single() ) {
if ( ! $paged ) {
$paged = 1;
}
$nextpage = (int) $paged + 1;
if ( ! $max_page || $max_page >= $nextpage ) {
return get_pagenum_link( $nextpage );
}
}
}