\/facet\/search_query_args<\/h1>\n<\/div>\n<\/div>\n\nThis filter is called before the search facet query object ids (posts, terms, users).<\/p>\n
It allows to modifies the search query arguments made by WP_Query<\/code>,\u00a0WP_Term_Query<\/code>\u00a0or\u00a0WP_User_Query<\/code><\/p>\n\n\n\nArgument<\/td>\n Type<\/td>\n Description<\/td>\n<\/tr>\n \n$query<\/td>\n array<\/td>\n Holds search query args<\/td>\n<\/tr>\n \n$facet<\/td>\n array<\/td>\n Holds facet settings<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n[pastacode lang=”php” manual=”function%20prefix_search_query_args(%20%24query_args%2C%20%24facet%20)%20%7B%0A%0A%0A%09%2F%2F%20We%20exclude%20post%20IDs%20from%20search%20if%20facet%20ID%20is%20equal%20to%201.%0A%09if%20(%201%20%3D%3D%3D%20%24facet%5B’id’%5D%20)%20%7B%0A%09%09%24query_args%5B’post__not_in’%5D%20%3D%20%5B%201%2C%202%2C%203%2C%204%20%5D%3B%0A%09%7D%0A%09%0A%09return%20%24query_args%3B%0A%09%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fsearch_query_args’%2C%20’prefix_search_query_args’%2C%2010%2C%202%20)%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"
\/facet\/search_query_args This filter is called before the search facet query object ids (posts, terms, users). It allows to modifies the search query arguments made by WP_Query,\u00a0WP_Term_Query\u00a0or\u00a0WP_User_Query Argument Type Description $query array Holds search query args $facet array Holds facet settings [pastacode lang=”php” manual=”function%20prefix_search_query_args(%20%24query_args%2C%20%24facet%20)%20%7B%0A%0A%0A%09%2F%2F%20We%20exclude%20post%20IDs%20from%20search%20if%20facet%20ID%20is%20equal%20to%201.%0A%09if%20(%201%20%3D%3D%3D%20%24facet%5B’id’%5D%20)%20%7B%0A%09%09%24query_args%5B’post__not_in’%5D%20%3D%20%5B%201%2C%202%2C%203%2C%204%20%5D%3B%0A%09%7D%0A%09%0A%09return%20%24query_args%3B%0A%09%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fsearch_query_args’%2C%20’prefix_search_query_args’%2C%2010%2C%202%20)%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n","protected":false},"author":2,"featured_media":4996,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[44,57,43],"tags":[],"class_list":["post-4880","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-documentation","category-php-filters","category-wp-grid-builder","category-44","category-57","category-43","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/comments?post=4880"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4880\/revisions"}],"predecessor-version":[{"id":5098,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4880\/revisions\/5098"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media\/4996"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media?parent=4880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
This filter is called before the search facet query object ids (posts, terms, users).<\/p>\n
It allows to modifies the search query arguments made by [pastacode lang=”php” manual=”function%20prefix_search_query_args(%20%24query_args%2C%20%24facet%20)%20%7B%0A%0A%0A%09%2F%2F%20We%20exclude%20post%20IDs%20from%20search%20if%20facet%20ID%20is%20equal%20to%201.%0A%09if%20(%201%20%3D%3D%3D%20%24facet%5B’id’%5D%20)%20%7B%0A%09%09%24query_args%5B’post__not_in’%5D%20%3D%20%5B%201%2C%202%2C%203%2C%204%20%5D%3B%0A%09%7D%0A%09%0A%09return%20%24query_args%3B%0A%09%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fsearch_query_args’%2C%20’prefix_search_query_args’%2C%2010%2C%202%20)%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":" \/facet\/search_query_args This filter is called before the search facet query object ids (posts, terms, users). It allows to modifies the search query arguments made by WP_Query,\u00a0WP_Term_Query\u00a0or\u00a0WP_User_Query Argument Type Description $query array Holds search query args $facet array Holds facet settings [pastacode lang=”php” manual=”function%20prefix_search_query_args(%20%24query_args%2C%20%24facet%20)%20%7B%0A%0A%0A%09%2F%2F%20We%20exclude%20post%20IDs%20from%20search%20if%20facet%20ID%20is%20equal%20to%201.%0A%09if%20(%201%20%3D%3D%3D%20%24facet%5B’id’%5D%20)%20%7B%0A%09%09%24query_args%5B’post__not_in’%5D%20%3D%20%5B%201%2C%202%2C%203%2C%204%20%5D%3B%0A%09%7D%0A%09%0A%09return%20%24query_args%3B%0A%09%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fsearch_query_args’%2C%20’prefix_search_query_args’%2C%2010%2C%202%20)%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n","protected":false},"author":2,"featured_media":4996,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[44,57,43],"tags":[],"class_list":["post-4880","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-documentation","category-php-filters","category-wp-grid-builder","category-44","category-57","category-43","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/comments?post=4880"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4880\/revisions"}],"predecessor-version":[{"id":5098,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4880\/revisions\/5098"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media\/4996"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media?parent=4880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}WP_Query<\/code>,\u00a0WP_Term_Query<\/code>\u00a0or\u00a0WP_User_Query<\/code><\/p>\n\n\n
\n Argument<\/td>\n Type<\/td>\n Description<\/td>\n<\/tr>\n \n $query<\/td>\n array<\/td>\n Holds search query args<\/td>\n<\/tr>\n \n $facet<\/td>\n array<\/td>\n Holds facet settings<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n