Filter hook 'the_weekday'

in WP Core File wp-includes/general-template.php at line 3131

View Source

the_weekday

Filter Hook
Description
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 3131

Hook Parameters

Type Name Description
string $the_weekday No description available

Usage Examples

Basic Usage
<?php
// Hook into the_weekday
add_filter('the_weekday', 'my_custom_filter', 10, 1);

function my_custom_filter($the_weekday) {
    // Your custom filtering logic here
    return $the_weekday;
}

Source Code Context

wp-includes/general-template.php:3131 - How this hook is used in WordPress core
<?php
3126  	 *
3127  	 * @since 0.71
3128  	 *
3129  	 * @param string $the_weekday
3130  	 */
3131  	echo apply_filters( 'the_weekday', $the_weekday );
3132  }
3133  
3134  /**
3135   * Displays the localized weekday for the post.
3136   *

PHP Documentation

<?php
/**
	 * Filters the localized weekday of the post, for display.
	 *
	 * @since 0.71
	 *
	 * @param string $the_weekday
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/general-template.php
Related Hooks

Related hooks will be displayed here in future updates.