Skip to content

Commit

Permalink
Merge pull request #5 from WebDevStudios/feature/add-filter-for-tax-q…
Browse files Browse the repository at this point in the history
…uery

Adds filter to query for taxonomy exclusion
  • Loading branch information
coreymcollins authored Nov 16, 2018
2 parents 72ff514 + e52526b commit 56effe8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions class-wds-react-post-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ public function search_posts( $request ) {
'posts_per_page' => -1,
'post_type' => $this->get_valid_search_post_types( $request ),
's' => sanitize_text_field( $request['s'] ),
'tax_query' => apply_filters( 'wds_react_post_search_tax_query', array() ),
];

// Get posts.
Expand Down

0 comments on commit 56effe8

Please sign in to comment.