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