day_link
Filters the day archive permalink.
Usage
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(string)
- Permalink for the day archive.
- $year(int)
- Year for the archive.
- $month(int)
- Month for the archive.
- $day(int)
- The day for the archive.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
day_link
wp-includes/link-template.php 655
return apply_filters( 'day_link', $daylink, $year, $month, $day );