Created
January 17, 2018 21:55
-
-
Save kierzniak/23f9c66060cae7f6f3887e62a8d14fb0 to your computer and use it in GitHub Desktop.
Search across all network blogs in elasticpress
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 | |
/** | |
* 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