-
-
Save joecue/5c1b78fd5f0925447bacfdb213916090 to your computer and use it in GitHub Desktop.
Search across all network blogs in elasticpress
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 | |
/** | |
* Search across all network blogs with elasticpress | |
* | |
* @param $scope string Search scope | |
* | |
* @return string | |
*/ | |
function motivast_ep_search_scope( $scope ) { | |
return 'all'; | |
} | |
add_filter( 'ep_search_scope', 'motivast_ep_search_scope' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment