===  AddonLogic Comment Upvote Downvote ===
Contributors: snehalpancholi
Tags: comments, voting, upvote, downvote, reactions
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add up/down voting to WordPress comments with per-visitor limits, net score display, and AJAX voting.

== Description ==

AddonLogic Comment Upvote Downvote adds a responsive voting widget beneath every comment. Votes are stored entirely in comment meta — no custom tables. One vote per visitor is enforced via a browser cookie with an IP hash fallback.

**Features:**
* Upvote and optional downvote buttons per comment
* Net score display between buttons
* AJAX voting — no page reload
* One vote per visitor (cookie + IP hash)
* Configurable on any public post type
* Guest voting toggle
* Dark mode compatible CSS

== Installation ==

1. Upload the `comment-upvote-downvote` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Settings → Comment Voting** to configure options.

== Frequently Asked Questions ==

= Can I disable downvotes? =
Yes. Uncheck **Allow Downvotes** in Settings → Comment Voting.

= Does it work for custom post types? =
Yes. Select any registered public post type on the settings page.

= What prevents duplicate votes? =
A cookie is set in the visitor's browser and an IP hash is stored in comment meta as a fallback.

== Changelog ==

= 1.0.0 =
* Initial release.
