On this page
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_htmlstring-
The archive HTML link content.
$urlstring-
URL to archive.
$textstring-
Archive text description.
$formatstring-
Link format. Can be
'link','option','html', or custom. $beforestring-
Content to prepend to the description.
$afterstring-
Content to append to the description.
$selectedbool-
True if the current page is the selected archive.
Source
File: wp-includes/general-template.php. View all references
return apply_filters( 'get_archives_link', $link_html, $url, $text, $format, $before, $after, $selected );
Related
Used By
| Used By | Description |
|---|---|
| get_archives_link() wp-includes/general-template.php | Retrieves archive link content based on predefined or custom code. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_archives_link