SearchWP

This Documentation is for SearchWP Version 3

Available since: 3.0

searchwp_do_blocks

View Parameters »

Note: Use of this hook will require a manual reindex

By default SearchWP will parse blocks when a post has been created using the block editor (sometimes referred to as Gutenberg) but if you would like to prevent that from happening you can do so with this hook:

<?php
// Prevent SearchWP from parsing Gutenberg blocks during indexing.
add_filter( 'searchwp_do_blocks', '__return_false' );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$parse_blocks Boolean

Whether blocks are parsed before indexing

[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]