searchwp\stopwords\suggestions\threshold
4.0.0以降
提案するストップワードを決定するために使用されるしきい値を制御します。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| 浮動小数点数 | $threshold |
0.3 | 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 | |
| // Decrease SearchWP Stopword suggestion threshold to return more Stopword suggestions. | |
| add_filter( 'searchwp\stopwords\suggestions\threshold', function( $threshold ) { | |
| return 0.2; | |
| } ); |

