apply_filters( 'get_archives_link', string $link_html, string $url, string $text, string $format, string $before, string $after, bool $selected )
Filters the archive link content.
Parameters
- $link_html
-
(string) The archive HTML link content.
- $url
-
(string) URL to archive.
- $text
-
(string) Archive text description.
- $format
-
(string) Link format. Can be 'link', 'option', 'html', or custom.
- $before
-
(string) Content to prepend to the description.
- $after
-
(string) Content to append to the description.
- $selected
-
(bool) True if the current page is the selected archive.
Source
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Added the $selected parameter. |
| 4.5.0 | Added the $url, $text, $format, $before, and $after parameters. |
| 2.6.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_archives_link