the_modified_author

过滤钩子
apply_filters( 'the_modified_author', $last_user ? $last_user->display_name : '' )
参数
  • (string) $display_name The author's display name, empty string if unknown.
    Required:
定义位置
相关勾子
the_modified_datethe_modified_timeget_the_modified_dateget_the_modified_timethe_author
相关方法
the_modified_authorget_the_modified_authorthe_modified_datethe_modified_timeget_the_modified_dateget_the_modified_time
引入
2.8.0
弃用
-

the_modified_author – 这是一个WordPress的函数,显示最后修改文章的用户的名字。the_modified_author函数生成一个文本字符串,包含最后修改文章的用户的名字,可以用来在文章的页面或自定义模板中显示这个信息。这个信息对于显示谁对文章进行了修改,以及跟踪文章的历史非常有用。

过滤最后编辑过当前文章的作者的显示名称。

return apply_filters( 'the_modified_author', $last_user ? $last_user->display_name : '' );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-01-29 07:09:33

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: