| 开发者 | cornelraiu-1 |
|---|---|
| 更新时间 | 2026年11月7日 23:39 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
add_filter( 'mwtss_applies_to_query', function ( $applies, $query ) { return $applies || $query->get( 'my_live_search' ); }, 10, 2 );
To turn them off for one query, pass 'mwtss_skip' => true to WP_Query.
No. It only stays out of your site's search results. It is still listed in menus, archives and widgets, and reachable at its own address.
No. MWT Search Steer controls the search on your own site. To keep a page out of search engines, use your SEO plugin's "noindex" setting.
Live search boxes often search through the REST API or admin-ajax.php. Tick "Also apply them to REST API and AJAX searches" in the settings. Live search plugins that run their own queries can call the mwtss_applies_to_query filter, described below.
No. Those plugins replace WordPress's own search query with their own index, and MWT Search Steer changes WordPress's own query. Use their exclusion features instead.
Yes, for the product search on the shop's search page, which uses WordPress's own query. Choose Products under Post types in the settings. WooCommerce's own visibility still applies: search keywords do not bring in a product whose catalog visibility leaves it out of search, or an out-of-stock product when the shop hides those.
Go to Settings > MWT Search Steer and click the import button for your plugin. The section shows only the plugins that have hidden posts on your site. Search Exclude can also hide every post of a type, a category or an author. Those settings are listed but not imported: select the posts in their list and use the "Hide from site search" bulk action.
No. A post is added when any keyword matches the search. With the keyword refund, a search for "refund status" finds the post.
No. Keywords have no public pages and are not printed anywhere on the site. Through the REST API, only users who can edit posts can read them.
They are kept, unless you tick "Delete all keywords, stop keywords, hidden flags and settings when the plugin is deleted" in the settings first.