[英]WP-Syntax in post comments
I'm trying to apply the syntax highlighting of the WP-Syntax plugin into post comments. 我正在尝试将WP-Syntax插件的语法突出显示应用于帖子注释中。 The changelog of the plugin suggests that this has already been done.
插件的更新日志表明这已经完成。 Has anyone does this before?
有人做过吗?
If they've not implemented this, how can I do it? 如果他们还没有实现,我该怎么办? Which parts of the code should I read?
我应该阅读代码的哪一部分?
Editing the plugin solved the problem. 编辑插件解决了该问题。 The plugin uses the comment_text filter by default (one "before" and one "after").
插件默认使用comment_text过滤器(一个“ before”和一个“ after”)。 Change it to the get_comment_text filter worked!
将其更改为get_comment_text过滤器有效!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.