admin管理员组文章数量:1426314
I have a website running shapely as my theme, and I am trying to allow only logged in members to see comments on a post, and restrict anyone but administrators from commenting. I would like comments to appear closed to everyone but administrators while previous comments are still visible to members.
In order to do this I just need to know how to assign a "closed for comments" value to a post, preferably from inside the comments.php file. Basically I would like to change all posts so the function: comments_open()
returns false, via code.
is there any easy way to do this?
本文标签: postsClosing Comments conditionally in commentsphp
版权声明:本文标题:posts - Closing Comments conditionally in comments.php 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745418799a2657809.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论