searchwp\tokens\regex_patterns\only_full_matches
4.0.0以降
デフォルトでは、SearchWPは正規表現パターンの完全一致のみを処理します。SearchWPに部分一致も考慮させたい場合は、このフックを使用してその動作を有効にすることができます。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| ブール値 | $enabled |
true |
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 | |
| // Allow partial regex pattern matches to be considered in SearchWP. | |
| add_filter( 'searchwp\tokens\regex_patterns\only_full_matches', '__return_false' ); |

