如何更改 WordPress 后端的默认字符串?
我正在开发自己的主题(和插件),并且希望能够更改管理屏幕上的默认字符串。具体来说,我想更改管理编辑屏幕上摘录字段的描述,默认情况下显示为:
Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts (link to WP Codex).
我不是在寻找将其翻译成另一种语言的方法,而只是在寻找更改字符串的方法。
哪个文件包含这些信息?我猜没有钩子或过滤器支持这个?我一直在查看 wp-include 文件夹,但没有运气。
I'm developing my own theme (and plugins) and wants to be able to change the default strings on the admin screen. To be concrete, I want to change the description of the excerpt-field on the admin edit screen, which by default reads:
Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts (link to WP Codex).
I'm not looking for a way to translate it into another language, but just a way to change the string.
Which file contains this information? I'm guessing no hooks or filters support this? I've been looking through the wp-include folder, without luck.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 paislee 评论中建议的 grep 的帮助下,我找到了它。它位于此处:
/wp-admin/includes/meta-boxes.php
With the help of
grep
as suggested in the comments by paislee, I found it. It turned out to be located here:/wp-admin/includes/meta-boxes.php