the_weekday_date
Filter HookDescription
Filters the localized weekday of the post, for display.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3176 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$the_weekday_date
|
The weekday on which the post was written. |
string
|
$before
|
The HTML to output before the date. |
string
|
$after
|
The HTML to output after the date. |
Usage Examples
Basic Usage
<?php
// Hook into the_weekday_date
add_filter('the_weekday_date', 'my_custom_filter', 10, 3);
function my_custom_filter($the_weekday_date, $before, $after) {
// Your custom filtering logic here
return $the_weekday_date;
}
Source Code Context
wp-includes/general-template.php:3176
- How this hook is used in WordPress core
<?php
3171 *
3172 * @param string $the_weekday_date The weekday on which the post was written.
3173 * @param string $before The HTML to output before the date.
3174 * @param string $after The HTML to output after the date.
3175 */
3176 echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
3177 }
3178
3179 /**
3180 * Fires the wp_head action.
3181 *
PHP Documentation
<?php
/**
* Filters the localized weekday of the post, for display.
*
* @since 0.71
*
* @param string $the_weekday_date The weekday on which the post was written.
* @param string $before The HTML to output before the date.
* @param string $after The HTML to output after the date.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.