wp_link_pages_args
Filters the arguments used in retrieving page links for paginated posts.
Usage
add_filter( 'wp_link_pages_args', 'wp_kama_link_pages_args_filter' ); /** * Function for `wp_link_pages_args` filter-hook. * * @param array $parsed_args An array of page link arguments. See wp_link_pages() for information on accepted arguments. * * @return array */ function wp_kama_link_pages_args_filter( $parsed_args ){ // filter... return $parsed_args; }
- $parsed_args(array)
- An array of page link arguments. See wp_link_pages() for information on accepted arguments.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
wp-includes/post-template.php 975
$parsed_args = apply_filters( 'wp_link_pages_args', $parsed_args );