-
-
Save searchwpgists/2d978a9f027946fd16493b10ef84f500 to your computer and use it in GitHub Desktop.
Customize the SearchWP Engine used for applicable REST requests
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 | |
// @link https://searchwp.com/documentation/rest-api/ | |
// Customize the SearchWP Engine used for applicable REST requests. | |
add_filter( 'searchwp\rest\engine', function( $engine, $args ) { | |
return 'my_rest_engine_name'; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment