| 开发者 | pepvote |
|---|---|
| 更新时间 | 2026年11月7日 02:04 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[pepvote] shortcode in the classic editor. You can embed any public page of a voting event:
[pepvote code="ENWPH8799"]
Options:
code (required): the voting event code, or a Pepvote link that contains one.page: voting (default), candidate-registration, voter-registration, ballot, cast, confirm, or result.height: the height in pixels, from 200 to 4000. Default 560. With auto height on, this is the starting height.auto_height: true (default) or false.title: the accessible title that screen readers announce for the embed.[pepvote code="ENWPH8799" page="result" height="640" auto_height="false"]
Block
Search for "Pepvote" in the block inserter. Enter the voting event code, or paste a link from the Share url in your Pepvote dashboard. Choose the page and height in the block settings.
You can also paste a Pepvote link on its own line, or paste a [pepvote] shortcode, and the editor turns it into a Pepvote block.
External service
This plugin loads pages from Pepvote (https://pepvote.com) in an iframe. It sends no data to Pepvote from your WordPress server. When a visitor views a page with an embed, their browser loads the Pepvote page directly, and Pepvote receives the usual request data, such as the visitor's IP address and browser details. Anything the visitor enters in the embed, such as a voter registration or a vote, goes to Pepvote.
In your Pepvote dashboard, open the voting event. The code is on the overview page, for example ENWPH8799.
Public registration pages only show a form while that registration is turned on and open. Check the Public Registration settings of your voting event in Pepvote.
Yes. Add define( 'PEPVOTE_BASE_URL', 'https://your-pepvote-url' ); to wp-config.php, or use the pepvote_base_url filter.
[pepvote] shortcode for every public voting event page, with auto height.