Created
February 4, 2021 16:02
Star
You must be signed in to star a gist
Customize the SearchWP Engine used for Divi Search Results Template
This file contains 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 | |
// 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