Changing comment status on post…
-
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
- The topic ‘Changing comment status on post…’ is closed to new replies.