WordPress как на ладони
wordpress jino
фильтр не описан

year_link хук-фильтр . WP 1.5.0

Filters the year archive permalink.

Использование

add_filter( 'year_link', 'filter_function_name_145', 10, 2 );
function filter_function_name_145( $yearlink, $year ){
	// filter...

	return $yearlink;
}
$yearlink(string)
Permalink for the year archive.
$year(int)
Year for the archive.

Связи хука

Используется в: get_year_link()

Кусок кода с хуком

Фрагмент из: wp-includes/link-template.php WP 4.9
...
	if ( !empty($yearlink) ) {
		$yearlink = str_replace('%year%', $year, $yearlink);
		$yearlink = home_url( user_trailingslashit( $yearlink, 'year' ) );
	} else {
		$yearlink = home_url( '?m=' . $year );
	}

	/**
	 * Filters the year archive permalink.
	 *
	 * @since 1.5.0
	 *
	 * @param string $yearlink Permalink for the year archive.
	 * @param int    $year     Year for the archive.
	 */
	return apply_filters( 'year_link', $yearlink, $year );
}

/**
 * Retrieves the permalink for the month archives with year.
 *
 * @since 1.0.0
 *
 * @global WP_Rewrite $wp_rewrite
 *
 * @param bool|int $year  False for current year. Integer of year.
 * @param bool|int $month False for current month. Integer of month.
 * @return string The permalink for the specified month and year archive.
 */
function get_month_link($year, $month) {
	global $wp_rewrite;
...