searchwp\query\logic\phrase
Da: 4.0.0
Indice
Controlla se SearchWP supporta le frasi tra virgolette.
Parametri
| Tipo | Parametro | Predefinito | Da |
|---|---|---|---|
| Booleano | $enabled |
Stato della casella di controllo nella scheda Avanzate della schermata delle impostazioni di SearchWP | 4.0.0 |
| \SearchWP\Query | $query |
La Query in esecuzione | 4.0.0 |
Esempi
All hooks should be added to your custom SearchWP Customizations Plugin.
Abilita il supporto per la ricerca tra virgolette
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 | |
| // Enable quoted search support in SearchWP. | |
| add_filter( 'searchwp\query\logic\phrase', function( $enabled, $query ) { | |
| return true; | |
| }, 30, 2 ); |

