
外掛標籤
開發者團隊
原文外掛簡介
Quillvote adds a Quillvote Poll block to the block editor. Type the question and the answers right in your post, publish, and visitors vote without leaving the page. Results appear as bars with percentages the moment they vote.
There is nothing to sign up for. Every vote is stored in your own WordPress database, and no data is sent to a third party.
Features
Inline editing – write the question and answers in the post, press Enter for the next answer, reorder or remove answers with one click.
Live results – bars, percentages and vote counts right after voting, with the visitor’s own choice marked.
Single or multiple choice – optionally limit how many answers one visitor may pick.
Repeat-vote protection – one vote per browser by default, one vote per browser and network for stricter polls, or unlimited votes.
Results when you want them – after voting, any time with a “View results” link, only after the poll closes, or never.
Close a poll – manually, or automatically at a date and time in your site’s timezone.
Results in the editor – see the counts and reset the votes in the block sidebar.
Works with page caching – the page itself carries no expiring tokens, so cached pages and CDNs keep accepting votes.
Light – one 3 KB (gzipped) script without jQuery or other libraries, loaded only on pages that contain a poll.
Fits your theme – inherits your fonts and colors and supports the block color, typography and spacing settings.
Accessible – native radio buttons and checkboxes in a labelled group, keyboard friendly, status messages announced to screen readers.
Privacy
Quillvote stores the chosen answers together with a keyed one-way hash of a random identifier that the visitor’s browser keeps in local storage; the hash is different in every poll, so ballots in different polls cannot be linked. For polls set to “One vote per browser and network” it also stores a keyed hash of the visitor’s IP address for that poll. To stop vote flooding, a hash of the IP address is kept for up to two minutes. IP addresses themselves are never stored. Quillvote sets no cookies and loads nothing from other sites. A suggested paragraph for your privacy policy is added under Settings > Privacy; depending on your jurisdiction, local storage may need the same consent as cookies.
For developers
quillvote_can_vote filter – return a WP_Error to refuse a vote, for example once a poll has reached a quota. Votes are sent without login cookies, so the current user is always a visitor here.
quillvote_vote_recorded action – runs after a vote is stored.
quillvote_client_ip filter – the visitor address used for network protection, for sites behind a trusted proxy.
quillvote_votes_per_minute filter – how many votes one network may cast per minute across all polls (default 120, 0 turns the limit off).
