开发者

WP-Syntax in post comments

开发者 https://www.devze.com 2023-02-10 02:12 出处:网络
I\'m trying to apply the syntax highlighting of the WP-Syntax plugin into post comments. The ch开发者_如何学Goangelog of the plugin suggests that this has already been done. Has anyone does this befor

I'm trying to apply the syntax highlighting of the WP-Syntax plugin into post comments. The ch开发者_如何学Goangelog 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"). Change it to the get_comment_text filter worked!

0

精彩评论

暂无评论...
验证码 换一张
取 消