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

Filters the day archive permalink.

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

add_filter( 'day_link', 'wp_kama_day_link_filter', 10, 4 );

/**
 * Function for `day_link` filter-hook.
 * 
 * @param string $daylink Permalink for the day archive.
 * @param int    $year    Year for the archive.
 * @param int    $month   Month for the archive.
 * @param int    $day     The day for the archive.
 *
 * @return string
 */
function wp_kama_day_link_filter( $daylink, $year, $month, $day ){

	// filter...
	return $daylink;
}
$daylink(строка)
Permalink for the day archive.
$year(int)
Year for the archive.
$month(int)
Month for the archive.
$day(int)
The day for the archive.

Список изменений

С версии 1.5.0 Введена.

Где вызывается хук

get_day_link()
day_link
wp-includes/link-template.php 655
return apply_filters( 'day_link', $daylink, $year, $month, $day );

Где используется хук в WordPress

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