day_link
Filter HookDescription
Filters the day archive permalink.Hook Information
File Location |
wp-includes/link-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 655 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$daylink
|
Permalink for the day archive. |
int
|
$year
|
Year for the archive. |
int
|
$month
|
Month for the archive. |
int
|
$day
|
The day for the archive. |
Usage Examples
Basic Usage
<?php
// Hook into day_link
add_filter('day_link', 'my_custom_filter', 10, 4);
function my_custom_filter($daylink, $year, $month, $day) {
// Your custom filtering logic here
return $daylink;
}
Source Code Context
wp-includes/link-template.php:655
- How this hook is used in WordPress core
<?php
650 * @param string $daylink Permalink for the day archive.
651 * @param int $year Year for the archive.
652 * @param int $month Month for the archive.
653 * @param int $day The day for the archive.
654 */
655 return apply_filters( 'day_link', $daylink, $year, $month, $day );
656 }
657
658 /**
659 * Displays the permalink for the feed type.
660 *
PHP Documentation
<?php
/**
* Filters the day archive permalink.
*
* @since 1.5.0
*
* @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.
*/
Quick Info
- Hook Type: Filter
- Parameters: 4
- File: wp-includes/link-template.php
Related Hooks
Related hooks will be displayed here in future updates.