WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to see if comments are enabled or disabled in php (5 posts)

  1. dcarmo
    Member
    Posted 2 years ago #

    Hello,

    I am just wondering how I would be able to tell if comments are enabled or disabled for a blog in php?

    Thanks

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    overall, or per post?

    comments_open();

    checks within the loop.....

  3. dcarmo
    Member
    Posted 2 years ago #

    both methods would be nice

  4. dcarmo
    Member
    Posted 2 years ago #

    Well that works as intended and looks like its not needed to see if it's shut off for the site overall. The above will just turn it off for each individual post when it is turned off site wide.

    Thanks

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Sure, glad to help!!

Topic Closed

This topic has been closed to new replies.

About this Topic