get_archives_link

Advertisement

Summery Summery

Filters the archive link content.

Syntax Syntax

apply_filters( 'get_archives_link', string $link_html, string $url, string $text, string $format, string $before, string $after, bool $selected )

Parameters Parameters

$link_html

The archive HTML link content.

$url

URL to archive.

$text

Archive text description.

$format

Link format. Can be 'link', 'option', 'html', or custom.

$before

Content to prepend to the description.

$after

Content to append to the description.

$selected

True if the current page is the selected archive.

Source Source

File: wp-includes/general-template.php

Advertisement

Changelog Changelog

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.

Advertisement

Leave a Reply