WordPress.org

Ready to get started?Download WordPress

Forums

How to check if the comment was "unspammed"? (3 posts)

  1. lelkoun
    Member
    Posted 2 years ago #

    There is an action that I can use to check if the comment status was changed to "approve" or "hold". It is called wp_set_comment_status. But it does not work for "unspamming" = when changing the status from "spam" to "approve" or "hold".

    Is there a way to trigger my function using some other way?
    Thank you!

  2. Big Bagel
    Member
    Posted 2 years ago #

    You could try the comment_(old status)_to_(new status) action.

    http://codex.wordpress.org/Plugin_API/Action_Reference/comment_(old_status)_to_(new_status)

    So, the actual action would be:

    comment_spam_to_approve

  3. lelkoun
    Member
    Posted 2 years ago #

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic