{"id":4858,"date":"2020-06-04T10:43:22","date_gmt":"2020-06-04T10:43:22","guid":{"rendered":"https:\/\/the7kennisbank.nl\/?p=4858"},"modified":"2020-06-09T13:13:51","modified_gmt":"2020-06-09T13:13:51","slug":"event-facet-init","status":"publish","type":"post","link":"https:\/\/the7kennisbank.nl\/nl\/wp-grid-builder\/documentation\/event-facet-init\/","title":{"rendered":"Event Facet init"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element \" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<div class=\"container flex items-center justify-between\">\n<h1 class=\"entry-title\">Facet init<\/h1>\n<\/div>\n<div id=\"article-wrapper\" class=\"container\">\n<p>This event is triggered when facets are initialized before to be rendered asynchronously. Facets can be empty at this time if it was not put into cache by the plugin.<\/p>\n<table class=\"wp-block-table arguments-table\">\n<tbody>\n<tr>\n<td>Argument<\/td>\n<td>Type<\/td>\n<td>Description<\/td>\n<\/tr>\n<tr>\n<td>facets<\/td>\n<td>object<\/td>\n<td>Holds facet ids and associated properties<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"code-syntax-block code-syntax-wrapper\">\n<p>[pastacode lang=&#8221;javascript&#8221; manual=&#8221;wpgb.facets.on(%20&#8217;init&#8217;%2C%20function(%20facets%20)%20%7B%0A%09%0A%09console.log(%20&#8217;init&#8217;%2C%20facets%20)%3B%0A%0A%7D%20)%3B&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p>\n<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Facet init This event is triggered when facets are initialized before to be rendered asynchronously. Facets can be empty at this time if it was not put into cache by the plugin. Argument Type Description facets object Holds facet ids and associated properties [pastacode lang=&#8221;javascript&#8221; manual=&#8221;wpgb.facets.on(%20&#8217;init&#8217;%2C%20function(%20facets%20)%20%7B%0A%09%0A%09console.log(%20&#8217;init&#8217;%2C%20facets%20)%3B%0A%0A%7D%20)%3B&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/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,55],"tags":[],"class_list":["post-4858","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-documentation","category-js-events","category-44","category-55","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/comments?post=4858"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4858\/revisions"}],"predecessor-version":[{"id":5178,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4858\/revisions\/5178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/media\/4996"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/media?parent=4858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/categories?post=4858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/tags?post=4858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}