Last active
January 15, 2021 12:42
-
-
Save jchristopher/de6f10a4beabda08952cfc3f674ff976 to your computer and use it in GitHub Desktop.
Customize the SearchWP Engine used for applicable REST requests
This file contains hidden or 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 | |
// 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