Filters the HTML output of page links for paginated posts.
Parameters
$outputstring
HTML output of paginated posts’ page links.
$argsarray|string
An array or query string of arguments. See wp_link_pages() for information on accepted arguments.More Arguments from wp_link_pages( … $args )Array or string of default arguments.
beforestring
HTML or text to prepend to each link. Default is <p> Pages:.
afterstring
HTML or text to append to each link. Default is </p>.
link_beforestring
HTML or text to prepend to each link, inside the <a> tag. Also prepended to the current item, which is not linked.
link_afterstring
HTML or text to append to each Pages link inside the <a> tag. Also appended to the current item, which is not linked.
aria_currentstring
The value for the aria-current attribute. Possible values are 'page', 'step', 'location', 'date', 'time', 'true', 'false'. Default is 'page'.
next_or_numberstring
Indicates whether page numbers should be used. Valid values are number and next. Default is 'number'.
separatorstring
Text between pagination links. Default is ‘ ‘.
nextpagelinkstring
Link text for the next page link, if available. Default is ‘Next Page’.
previouspagelinkstring
Link text for the previous page link, if available. Default is ‘Previous Page’.
pagelinkstring
Format string for page numbers. The % in the parameter string will be replaced with the page number, so ‘Page %’ generates "Page 1", "Page 2", etc. Defaults to '%', just the page number.
echoint|bool
Whether to echo or not. Accepts 1|true or 0|false. Default 1|true.