WordPress.org

Ready to get started?Download WordPress

Forums

Changing comment status on post... (1 post)

  1. asdasDan
    Member
    Posted 3 years ago #

    Hey guys, I'm wanting to change a comments status (ie, spam/approved/hold) on the comment post, meaning, before it's actually written to the database, I want to change it's approved status based on information in the comments table....

    I've looked at a handful of functions,(specifically set_comment_status) but I'm unsure which one would suit me best, and a lot require the comment ID, though I don't think this would be available before it's created?

    Also, when would be the best time to call this function?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic