searchwp\source\post\attributes\content\do_blocks
Desde: 4.0.0
Tabla de contenidos
Controla si SearchWP procesa los bloques del editor de bloques (Gutenberg) antes de indexar.
Parámetros
| Tipo | Parámetro | Predeterminado | Desde | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Booleano | $enabled |
verdadero |
4.0.0 |
||||||
| Matriz |
$args
|
4.0.0 |
|||||||
Ejemplos
All hooks should be added to your custom SearchWP Customizations Plugin.
Deshabilitar el análisis de bloques durante la indexación
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 | |
| // Disable Gutenberg block parsing during SearchWP indexing. | |
| add_filter( 'searchwp\source\post\attributes\content\do_blocks', '__return_false' ); |

