\/facet\/settings<\/h1>\n<\/div>\n\nThis filter is called every time facet settings are queried.<\/p>\n
It allows to dynamically change or add setting parameter(s) to a specific facet in order to change its behaviour.<\/p>\n
\n\n\nArgument<\/td>\n Type<\/td>\n Description<\/td>\n<\/tr>\n \n$settings<\/td>\n array<\/td>\n Holds facet settings<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n[pastacode lang=”php” manual=”function%20prefix_facet_settings(%20%24settings%20)%20%7B%20%0A%0A%09%2F%2F%20If%20it%20matches%20facet%20id%201%2C%20change%20facet%20display%20order.%0A%09if%20(%201%20%3D%3D%3D%20%24settings%5B’id’%5D%20)%20%7B%0A%09%09%24settings%5B’orderby’%5D%20%3D%20’count’%3B%0A%09%7D%0A%0A%0A%09%2F%2F%20If%20it%20matches%20facet%20id%202%2C%20hide%20facet%20children.%0A%09if%20(%202%20%3D%3D%3D%20%24settings%5B’id’%5D%20)%20%7B%0A%09%09%24settings%5B’children’%5D%20%3D%200%3B%0A%09%7D%20%0A%0A%09return%20%24settings%3B%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fsettings’%2C%20’prefix_facet_settings’%2C%2010%2C%201%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\/settings This filter is called every time facet settings are queried. It allows to dynamically change or add setting parameter(s) to a specific facet in order to change its behaviour. Argument Type Description $settings array Holds facet settings [pastacode lang=”php” manual=”function%20prefix_facet_settings(%20%24settings%20)%20%7B%20%0A%0A%09%2F%2F%20If%20it%20matches%20facet%20id%201%2C%20change%20facet%20display%20order.%0A%09if%20(%201%20%3D%3D%3D%20%24settings%5B’id’%5D%20)%20%7B%0A%09%09%24settings%5B’orderby’%5D%20%3D%20’count’%3B%0A%09%7D%0A%0A%0A%09%2F%2F%20If%20it%20matches%20facet%20id%202%2C%20hide%20facet%20children.%0A%09if%20(%202%20%3D%3D%3D%20%24settings%5B’id’%5D%20)%20%7B%0A%09%09%24settings%5B’children’%5D%20%3D%200%3B%0A%09%7D%20%0A%0A%09return%20%24settings%3B%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fsettings’%2C%20’prefix_facet_settings’%2C%2010%2C%201%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-4895","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\/4895","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=4895"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4895\/revisions"}],"predecessor-version":[{"id":5071,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4895\/revisions\/5071"}],"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=4895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
This filter is called every time facet settings are queried.<\/p>\n
It allows to dynamically change or add setting parameter(s) to a specific facet in order to change its behaviour.<\/p>\n
| Argument<\/td>\n | Type<\/td>\n | Description<\/td>\n<\/tr>\n |
| $settings<\/td>\n | array<\/td>\n | Holds facet settings<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \n [pastacode lang=”php” manual=”function%20prefix_facet_settings(%20%24settings%20)%20%7B%20%0A%0A%09%2F%2F%20If%20it%20matches%20facet%20id%201%2C%20change%20facet%20display%20order.%0A%09if%20(%201%20%3D%3D%3D%20%24settings%5B’id’%5D%20)%20%7B%0A%09%09%24settings%5B’orderby’%5D%20%3D%20’count’%3B%0A%09%7D%0A%0A%0A%09%2F%2F%20If%20it%20matches%20facet%20id%202%2C%20hide%20facet%20children.%0A%09if%20(%202%20%3D%3D%3D%20%24settings%5B’id’%5D%20)%20%7B%0A%09%09%24settings%5B’children’%5D%20%3D%200%3B%0A%09%7D%20%0A%0A%09return%20%24settings%3B%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fsettings’%2C%20’prefix_facet_settings’%2C%2010%2C%201%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\/settings This filter is called every time facet settings are queried. It allows to dynamically change or add setting parameter(s) to a specific facet in order to change its behaviour. Argument Type Description $settings array Holds facet settings [pastacode lang=”php” manual=”function%20prefix_facet_settings(%20%24settings%20)%20%7B%20%0A%0A%09%2F%2F%20If%20it%20matches%20facet%20id%201%2C%20change%20facet%20display%20order.%0A%09if%20(%201%20%3D%3D%3D%20%24settings%5B’id’%5D%20)%20%7B%0A%09%09%24settings%5B’orderby’%5D%20%3D%20’count’%3B%0A%09%7D%0A%0A%0A%09%2F%2F%20If%20it%20matches%20facet%20id%202%2C%20hide%20facet%20children.%0A%09if%20(%202%20%3D%3D%3D%20%24settings%5B’id’%5D%20)%20%7B%0A%09%09%24settings%5B’children’%5D%20%3D%200%3B%0A%09%7D%20%0A%0A%09return%20%24settings%3B%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Ffacet%2Fsettings’%2C%20’prefix_facet_settings’%2C%2010%2C%201%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-4895","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\/4895","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=4895"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4895\/revisions"}],"predecessor-version":[{"id":5071,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4895\/revisions\/5071"}],"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=4895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |