searchwp\tokens\strict
4.0.0以降
SearchWPがトークンに対して厳密であるかどうかを制御します。無効になっている場合(デフォルトの動作)、SearchWPは文字のアクセントを削除します。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| ブール値 | $enabled |
false |
4.0.0 |
例
すべてのフックはカスタムのSearchWP カスタマイズプラグインに追加する必要があります。
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 | |
| // Tell SearchWP to be strict with accents and umlauts. | |
| add_filter( 'searchwp\tokens\strict', '__return_true' ); |

