VaultPress::comment_action_handler PHP Method

comment_action_handler() public method

Handle Notifying VaultPress of Comment Activity
public comment_action_handler ( $comment_id )
    function comment_action_handler($comment_id)
    {
        if (!is_array($comment_id)) {
            if (wp_get_comment_status($comment_id) != 'spam') {
                $this->add_ping('db', array('comment' => $comment_id));
            }
        } else {
            foreach ($comment_id as $id) {
                if (wp_get_comment_status($comment_id) != 'spam') {
                    $this->add_ping('db', array('comment' => $id));
                }
            }
        }
    }
VaultPress