| 开发者 | abourri |
|---|---|
| 更新时间 | 2026年9月27日 07:23 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[askledge] shortcode, the native Askledge block, or the Askledge widget under Appearance → Widgets. Display Rules control where each appears.Entire site includes archives and singular content. Selected content includes the chosen public post types OR explicit pages/posts. Exclusions always win. Rules also apply to the block, shortcode and classic widget, and prevent frontend assets loading on excluded pages. They are placement rules, not access control for the public chat endpoint.
The cursor and progress are saved after each post. Build/resume continues from that position; Rebuild starts a new pass without emptying the live index. Batches pause when the admin page is closed. MySQL/MariaDB connection locks serialize writes. Custom donated extra documents retain the existing extension contract.
Forwarded headers are ignored by default. Trusted server integrations can use askledge_client_ip or askledge_rate_limit_identifier; only accept forwarding headers from a verified proxy. Private AI endpoints require the explicit advanced opt-in. HTTPS remains required except for loopback development endpoints. Redirects never receive the API key.
Anonymous counters and feedback are optional and off by default. They count questions, outcomes, source post IDs and contact usage without storing question text or visitor identifiers. Signed feedback receipts are single-use and expire after one hour. Rate-limit hashes and used receipts are purged by daily cron after expiry. The separate optional question log retains its existing controls. The last three recognized intent names live only in each widget on the current page and are cleared by Reset or navigation.
Settings and curated answers with schema askledge/config version 1. Keys, AI endpoints, private-endpoint permission, logs and analytics are excluded. Import needs explicit confirmation, validates values, and retains the site's current AI credentials and private-network permission. Content IDs refer to this WordPress site's posts: review selectors/cards when moving to a different site, then rebuild the index.
askledge_avoid_selectors receives an array of CSS selectors. askledge_client_ip and askledge_rate_limit_identifier integrate verified proxies. askledge_intent_languages extends supported language codes; the existing site_answers_intent_dictionaries, site_answers_intent_registry, site_answers_intent_retrieval_terms and site_answers_followup_markers extend language vocabulary. Existing site_answers_* public hooks and shortcode aliases remain available.
No. The default Search mode answers entirely from your own indexed content. A key is only needed if you deliberately switch to AI mode, and the service is your choice.
From the content you selected under Content Sources, from the Curated Answers and Manual Q&A pairs you wrote yourself, and from nowhere else.
The assistant shows your configured "not found" message and, if you have configured a contact action and left the no-answer handoff on, buttons to reach you. It never invents an answer, a price, a date or a link.
No. ACF inclusion is off by default, and even once switched on only the individual fields you tick are ever read. Field names that look personal or sensitive can never be selected.
No. Post types whose name contains patterns such as order, booking, customer, cart, payment, invoice, user or subscription are permanently excluded from the picker, regardless of settings.
Yes. With WooCommerce active and product selected under Content Sources, each product's title, price, descriptions and visible attributes are indexed.
Yes. Each post is indexed under its own language, and a setting controls whether the assistant may fall back to another language.
No. Settings, Curated Answers, Manual Q&A, the API key, the content index, the question log and widget instances are all kept. The [site_answers] and [site_knowledge_assistant] shortcodes keep working as aliases of [askledge].
askledge, and [askledge] is the shortcode. Nothing you have configured changes: settings, Curated Answers, Manual Q&A, the stored API key, the content index, the question log and widget instances are all kept under their existing names, and the [site_answers] and [site_knowledge_assistant] shortcodes still work.site_answers_curated_sanitize_item filter callback has run. Previously a callback on that filter could return data that had not been through the plugin's own sanitisers, and it would be stored as returned.welcome_message[] instead of welcome_message) is discarded instead of raising a PHP warning. Saving settings also discards any submitted key that is not one of the plugin's own settings.site_answers_curated_types, site_answers_curated_payload, site_answers_small_talk_contact_action and site_answers_allowed_answer_languages filters are validated before use. In particular the human-handoff button's URL is re-checked against the http/https allow-list after filtering, since it becomes a link a visitor is invited to click.<body>), appearing on scroll, finishing a transition, being added late, the phone being turned, or the page finishing loading. No polling and no timers.site_answers_ai_request_body and site_answers_ai_request_headers, tune the request for a service that needs it.{question} placeholder. Both are registered with Polylang's String Translations, and both are empty on a fresh install.