searchwp\stopwords
4.0.0以降
SearchWPは、インデックスの最適化と検索結果の関連性向上のため、ストップワードを使用します。
ストップワードリストをカスタマイズする主な方法は、SearchWP設定画面の設定タブを経由することです。ただし、プログラムでストップワードをフィルタリングすることも可能です。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| String[] | $stopwords |
ロケールに応じたストップワードのローカライズされたリスト | 4.0.0 |
例
All hooks should be added to your custom SearchWP Customizations Plugin.
すべてのストップワードを削除
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Remove all SearchWP Stopwords. | |
| add_filter( 'searchwp\stopwords', '__return_empty_array' ); |

