Filter hook 'get_archives_link'

in WP Core File wp-includes/general-template.php at line 1954

Description

Filters the archive link content.

Occurrences

Filename Line Number
wp-includes/general-template.php 1954

Parameters

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.

PHP Doc

/**
	 * 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.
	 */