paginate_links_output
Filter HookDescription
Filters the HTML output of paginated links for archives.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 4805 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$r
|
HTML output. |
array
|
$args
|
An array of arguments. See paginate_links() for information on accepted arguments. |
Usage Examples
Basic Usage
<?php
// Hook into paginate_links_output
add_filter('paginate_links_output', 'my_custom_filter', 10, 2);
function my_custom_filter($r, $args) {
// Your custom filtering logic here
return $r;
}
Source Code Context
wp-includes/general-template.php:4805
- How this hook is used in WordPress core
<?php
4800 *
4801 * @param string $r HTML output.
4802 * @param array $args An array of arguments. See paginate_links()
4803 * for information on accepted arguments.
4804 */
4805 $r = apply_filters( 'paginate_links_output', $r, $args );
4806
4807 return $r;
4808 }
4809
4810 /**
PHP Documentation
<?php
/**
* Filters the HTML output of paginated links for archives.
*
* @since 5.7.0
*
* @param string $r HTML output.
* @param array $args An array of arguments. See paginate_links()
* for information on accepted arguments.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.