searchwp\query\tokens\use_stems
4.0.0以降
クエリでトークンキーワードの語幹が使用されるかどうかを制御します。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| ブール値 | $enabled |
エンジンの設定のチェックボックスの状態 | 4.0.0 |
| \SearchWP\Query | $query |
実行中のクエリ | 4.0.0 |
例
すべてのフックはカスタムのSearchWP カスタマイズプラグインに追加する必要があります。
すべてのエンジンでキーワードの語幹処理を無効にする
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 | |
| // Disable keyword stemming for all Engines in SearchWP. | |
| add_filter( 'searchwp\query\tokens\use_stems', '__return_false' ); |

