searchwp\query\args
Desde: 4.0.0
Tabla de contenidos
Personaliza los argumentos para una \SearchWP\Query que se utiliza para realizar todas las consultas de b
uevoacute;squeda.
Parámetros
| Tipo | Parámetro | Predeterminado | Desde | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Matriz |
$args
|
4.0.0 |
|||||||||||||||||||||||||
| \SearchWP\Query | $query |
La consulta que se está ejecutando | 4.0.0 |
||||||||||||||||||||||||
Ejemplos
All hooks should be added to your custom SearchWP Customizations Plugin.
Personaliza el motor utilizado para una consulta
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 | |
| // Customize the Engine used for a SearchWP Query. | |
| add_filter( 'searchwp\query\args', function( $args, $query ) { | |
| $args['engine'] = 'supplemental'; // Engine name. | |
| return $args; | |
| }, 20, 2 ); |

