searchwp\source\post\attributes\content\do_blocks
Depuis : 4.0.0
Table des matières
Contrôler si SearchWP traite les blocs de l'éditeur de blocs (Gutenberg) avant l'indexation.
Paramètres
| Type | Paramètre | Défaut | Depuis | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Booléen | $enabled |
true |
4.0.0 |
||||||
| Tableau |
$args
|
4.0.0 |
|||||||
Exemples
Tous les hooks doivent être ajoutés à votre plugin personnalisé SearchWP Customizations Plugin.
Désactiver l’analyse des blocs lors de l’indexation
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' ); |

