searchwp\stopwords\suggestions\threshold
4.0.0以降
提案するストップワードを決定するために使用されるしきい値を制御します。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| 浮動小数点数 | $threshold |
0.3 | 4.0.0 |
例
すべてのフックはカスタムのSearchWP カスタマイズプラグインに追加する必要があります。
ストップワード候補のしきい値をカスタマイズ
ストップワード候補のしきい値を下げて、より多くのストップワード候補を返します。
| <?php | |
| // Decrease SearchWP Stopword suggestion threshold to return more Stopword suggestions. | |
| add_filter( 'searchwp\stopwords\suggestions\threshold', function( $threshold ) { | |
| return 0.2; | |
| } ); |

