WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_archives_link

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/general-template.php apply_filters 1931 /**
* Filters the archive link content.
*
* @since 2.6.0
* @since 4.5.0 Added the `$url`, `$text`, `$format`, `$before`, and `$after` parameters.
* @since 5.2.0 Added the `$selected` parameter.
*
* @param string $link_html The archive HTML link content.
* @param string $url URL to archive.
* @param string $text Archive text description.
* @param string $format Link format. Can be 'link', 'option', 'html', or custom.
* @param string $before Content to prepend to the description.
* @param string $after Content to append to the description.
* @param bool $selected True if the current page is the selected archive.
*/

Hook Parameters

Parameter Type Name Description
string $link_html The archive HTML link content.
string $url URL to archive.
string $text Archive text description.
string $format Link format. Can be 'link', 'option', 'html', or custom.
string $before Content to prepend to the description.
string $after Content to append to the description.
bool $selected True if the current page is the selected archive.