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.
Source
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |