wp_link_pages WordPress Filter Hook

The wp_link_pages hook is used to add links to previous and next pages when using the WordPress pagination functions. This hook is called by the wp_link_pages() function.

apply_filters( 'wp_link_pages', string $output, array|string $args ) #

Filters the HTML output of page links for paginated posts.


Parameters

$output

(string)HTML output of paginated posts' page links.

$args

(array|string)An array or query string of arguments. See wp_link_pages() for information on accepted arguments.


Top ↑

Source

File: wp-includes/post-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.