Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Customize the SearchWP Engine used for Divi Search Results Template
<?php
// Use `supplemental` Engine for Divi Search Results Templates.
// @link https://searchwp.com/documentation/knowledge-base/divi/
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