paginate_links_output
Filters the HTML output of paginated links for archives.
Usage
add_filter( 'paginate_links_output', 'wp_kama_paginate_links_output_filter', 10, 2 ); /** * Function for `paginate_links_output` filter-hook. * * @param string $r HTML output. * @param array $args An array of arguments. See paginate_links() for information on accepted arguments. * * @return string */ function wp_kama_paginate_links_output_filter( $r, $args ){ // filter... return $r; }
- $r(string)
- HTML output.
- $args(array)
- An array of arguments. See paginate_links() for information on accepted arguments.
Changelog
Since 5.7.0 | Introduced. |
Where the hook is called
paginate_links_output
wp-includes/general-template.php 4660
$r = apply_filters( 'paginate_links_output', $r, $args );