钩子文档

the_weekday

💡 云策文档标注

概述

the_weekday 是一个 WordPress 过滤器,用于修改文章本地化星期几的显示内容。它允许开发者在输出前自定义星期几的字符串。

关键要点

  • 过滤器名称:the_weekday
  • 参数:$the_weekday(字符串类型,表示本地化星期几)
  • 用途:过滤文章本地化星期几的显示,常用于主题或插件开发中自定义输出格式
  • 相关函数:the_weekday(),位于 wp-includes/general-template.php,用于显示文章的本地化星期几
  • 引入版本:WordPress 0.71

代码示例

echo apply_filters( 'the_weekday', $the_weekday );

📄 原文内容

Filters the localized weekday of the post, for display.

Parameters

$the_weekdaystring

Source

echo apply_filters( 'the_weekday', $the_weekday );

Changelog

Version Description
0.71 Introduced.