| 开发者 | asklet |
|---|---|
| 更新时间 | 2026年10月26日 01:42 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/blog/** or /docs/getting-started/). The plugin adds the same widget to every post, and Asklet shows each reader the survey that matches the page they are on. To change the questions, you edit them in Asklet. Nothing changes in WordPress.
What the plugin does
[asklet] shortcode to place it by hand.asklet_widget_html filter: change the inline widget's markup (an iframe; a div or span wrapper is allowed). It also gets the widget's size (fit, height, max_width, align).asklet_embed_base_url filter, or the ASKLET_EMBED_BASE_URL constant in wp-config.php: load the widget from another address, for example a staging app._asklet_display post meta (after, before, panel, slidein or hidden), registered for the REST API.1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d.In Asklet. You read them per website, per page and per path in the Asklet dashboard. Nothing is added to your WordPress database apart from the plugin's settings.
The widget reads the address of the post it is on. In Asklet you give each survey one or more paths, and the most specific match wins. Posts that match no path get the website's default survey.
Check that your WordPress domain is listed on the website in Asklet. The widget refuses to load on other domains.
Yes. Set Placement to "Only where I add the Asklet block or [asklet] shortcode", then add the Asklet survey block or the [asklet] shortcode where you want it. A post that already has the block or shortcode never gets a second, automatic one.
Yes. In the Asklet box in its sidebar, pick Display: the site default, inline after or before the content, side panel, slide-in, or hidden. A choice made there works even on post types that don't get the survey site-wide, so you can add a side panel to a single page.
Yes, in Settings → Asklet → Size. By default the survey fits its questions and fills the width of your content column. You can set a fixed height (200–1200 px) instead, and a maximum width with centre or left alignment, which helps on wide themes. One block can override this in its sidebar (Size), and so can one shortcode:
[asklet height="400" width="600" align="left"]
height takes a number of pixels or fit, width a number of pixels or full, and align left or center. The side panel and slide-in always fit the survey.
Inline suits articles: readers who reach the end can judge the post, and nothing covers the content. The side panel stays out of the way until someone opens it, which suits guides and pages with a lot going on. The slide-in asks at the end of the post without taking space in it, and usually gets more answers than inline on long articles.
No. The widget sets no cookies and stores nothing on the reader's device. What your privacy policy and cookie banner need to say is for you to decide; External services below lists exactly what the widget sends, and the plugin suggests a privacy policy paragraph under Settings → Privacy.
Inline, the widget is a single iframe that the browser loads only when the reader scrolls near it, plus one small deferred script (no jQuery) that sizes it to the survey. The side panel and slide-in add a small stylesheet too, and load the widget only when the reader opens or reaches it. Nothing is loaded on pages without the survey, archives, feeds or the admin.
Yes. The plugin's output is the same for every visitor, so cached pages are fine.
Its settings and the per-post display choices, on every site of a network. Your answers stay in Asklet.