API / Minn\Front / PageLinks

PageLinks final class

Minn\Front\PageLinks · public/minn/src/Minn/Front/PageLinks.php · 40 lines

The links between the pages of a post split with <!--nextpage-->, as wp_link_pages writes them (probe placeholders-a). By number: the before markup, each page (the current one a span, unless the whole post is not being shown and this is its first page) after a space for the first and the separator for the rest, the after markup. By next and previous, only where the whole post is shown: the previous page's link, the separator, the next page's. Nothing for a post in one page.

Public

staticrender(array $args, int $page, int $pages, int $more, Closure $open, Closure $filter): string#

The links for the page being shown of a split post.

$argsarray<string, mixed>wp_link_pages's arguments with their defaults
$moreintthe reference's $more global: 1 when the whole post is shown
$openClosure(int): stringthe opening anchor of page $i
$filterClosure(string, int): stringa link through wp_link_pages_link