posts - Closing Comments conditionally in comments.php

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,

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745418799a4626873.html

相关推荐

  • posts - Closing Comments conditionally in comments.php

    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,

    10小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信