-
-
Save qhoxie/47e39f8db6b6fa2b7d7c to your computer and use it in GitHub Desktop.
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 | |
function swiftype_search_params_filter( $params ) { | |
// set the types to allow | |
$params['filters[posts][object_type]'] = array( 'post' ); | |
return $params; | |
} | |
add_filter( 'swiftype_search_params', 'swiftype_search_params_filter', 8, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment