searchwp\query\partial_matches\fuzzy\threshold
4.0.0以降
あいまい一致と見なされるかどうかのしきい値を制御します。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| 整数 | $threshold |
70 |
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 | |
| // Make SearchWP's fuzzy matching more strict. | |
| // The scale is 0-100 going from furthest match (lowest, 0) | |
| // to closest match (highest, 100). | |
| add_filter( 'searchwp\query\partial_matches\fuzzy\threshold', function( $threshold ) { | |
| return 80; | |
| } ); |

