year_link WordPress Filter Hook

The year_link hook is used to create a link to a year archive. It is used to generate the URL for a year archive.

apply_filters( 'year_link', string $yearlink, int $year ) #

Filters the year archive permalink.


Parameters

$yearlink

(string)Permalink for the year archive.

$year

(int)Year for the archive.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More