Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Customize the SearchWP Engine used for Divi Search Results Template
// Use `supplemental` Engine for Divi Search Results Templates.
// @link
add_filter( 'searchwp\integration\pagebuilder\engine', function( $engine, $params ) {
if ( 'divi' === $params['context'] ) {
$engine = 'supplemental';
return $engine;
}, 10, 2 ),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment