| 开发者 | wteam |
|---|---|
| 更新时间 | 2026年8月9日 22:25 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[prismsearch]
Optional attributes:
[prismsearch min_chars="3" limit="10" placeholder="Search..."]
Enter key redirect:
[prismsearch enter_redirect="1"]
[prismsearch enter_redirect="0"]
Voice input:
[prismsearch voice_search="1"]
[prismsearch voice_search="0"]
Voice input uses the configured NLP language. Developers can override it with the prismsearch_speech_language filter. The microphone stays hidden when browser speech recognition is unavailable.
Automatic theme integration
Enable automatic integration under Settings > PrismSearch > Frontend.
add_filter( 'prismsearch_automatic_theme_integration', '__return_false' );
Privacy and external services
Indexing, tokenization and search run locally in WordPress. PrismSearch does not load remote frontend or admin assets.
When voice search is disabled, PrismSearch does not access the microphone. When enabled and activated, speech recognition is handled by the browser Web Speech API. Audio may be processed locally or by a browser-vendor service. PrismSearch does not receive or store microphone audio; it receives only recognized text.
Included third-party libraries
PrismSearch includes Select2 4.1.0 for admin multi-select fields. Select2 is MIT licensed; its license is at assets/vendor/select2/LICENSE.md. Source: https://github.com/select2/select2.
Templates and styling
PrismSearch loads its default frontend stylesheet unless disabled in settings.
Developers can also disable it with:
add_filter( 'prismsearch_load_frontend_css', '__return_false' );
Override plugin templates from your theme under:
template/prismsearch/
Example:
template/prismsearch/item.php
prismsearch folder to /wp-content/plugins/, or install the ZIP through WordPress.[prismsearch] where needed.Yes. Enable "Override default WordPress search" to use PrismSearch on the ?s= results page.
Yes. Enable Automatic theme integration, or insert the native PrismSearch block manually.
Posts, pages, selected public custom post types and selected public taxonomy terms.
Yes. Select them under "Frontend meta keys". They are displayed in AJAX results but are not indexed for search.
Yes. Enable fuzzy typo matching. It runs as a fallback when normal search returns too few results.
50 requests per IP per minute. Change it under Settings > PrismSearch > Security, or set 0 to disable it.
PrismSearch uses its own index. Build it after installation and after changing indexed content or language settings.
Yes, when live index updates are enabled. Selected content is reindexed when saved, updated, trashed or deleted.
An optional mode under Settings > PrismSearch > Advanced. It installs a managed MU-plugin and serves eligible anonymous REST searches after MU-plugins load, before normal plugins and the active theme.
Fast Path is unavailable on multisite or when the MU-plugin location is not writable. Its managed file is removed when disabled, deactivated or uninstalled.
Requests with a login cookie, Authorization or X-WP-Nonce use normal REST bootstrap. Because Fast Path skips normal plugin/theme hooks, do not enable it when access control, URLs, post-type behavior or filtering depend on them.
Disable Fast Path per request with prismsearch_rest_fast_path_allowed, or globally with PRISMSEARCH_DISABLE_REST_FAST_PATH.
Yes. Enable "Disable frontend.css", or use the prismsearch_load_frontend_css filter.
Yes. Enable "Redirect on Enter", or use enter_redirect="1".
Yes. Enable "Voice search", or use voice_search="1". The microphone appears only when supported in a secure context; the browser handles permission and recognition.
Yes. Copy the plugin template files into your theme under template/prismsearch/ and edit them there.