• In a theme, how can I check if a site allows unregistered users to comment?

    I want to create this functionality: If users are allowed to comment while being unregistered, they are presented with the comment form. If admin has opted to disable commenting for unregistered users, they would be presented with a login link.

    I was trying with comments_open() but either i′m doing it wrong or it doesn′t work that way…

    Am I looking for the right thing (a conditional tag) or there is another very different way to do this?

  • The topic ‘Conditional tag to check if unregistered users are allowed to comment.’ is closed to new replies.