\/indexer\/row<\/h1>\n<\/div>\n<\/div>\n\nThis filter is called before a row is inserted into the index table.<\/p>\n
It allows to modifies properties of a row like the facet_value<\/code> and facet_name<\/code><\/p>\nThis filter should not be used to query a facet value but simply used to modify it (like formatting a date). To setup rows and facet values you should use the filter wp_grid_builder\/indexer\/index_object<\/a><\/code><\/p>\n\n\n\nArgument<\/td>\n Type<\/td>\n Description<\/td>\n<\/tr>\n \n$row<\/td>\n array<\/td>\n Holds index row of the current object id<\/td>\n<\/tr>\n \n$object_id<\/td>\n integer<\/td>\n Post, term or user id to index<\/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_row_data(%20%24row%2C%20%24object_id%2C%20%24facet%20)%20%7B%20%0A%0A%0A%09%2F%2F%20We%20only%20process%20date%20facet%20type.%0A%09if%20(%20’date’%20!%3D%3D%20%24facet%5B’type’%5D%20)%20%7B%0A%09%09return%20%24row%3B%20%0A%09%7D%20%0A%0A%0A%0A%09%2F%2F%20We%20change%20the%20date%20format%20to%20match%20date%20facet%20format%20(Y-m-d%20or%20Y-m-d%20h%3Ai%3As).%20%0A%09%24row%5B’facet_value’%5D%20%3D%20date(%20’Y-m-d’%2C%20strtotime(%20%24row%5B’facet_value’%5D%20)%20)%3B%20%0A%09%2F%2F%20Return%20row%20to%20insert%20in%20the%20index%20table.%20%0A%09return%20%24row%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Findexer%2Frow’%2C%20’prefix_row_data’%2C%2010%2C%203%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":"
\/indexer\/row This filter is called before a row is inserted into the index table. It allows to modifies properties of a row like the facet_value and facet_name This filter should not be used to query a facet value but simply used to modify it (like formatting a date). To setup rows and facet values you…<\/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-4891","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\/4891","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=4891"}],"version-history":[{"count":4,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4891\/revisions"}],"predecessor-version":[{"id":5507,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4891\/revisions\/5507"}],"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=4891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
This filter is called before a row is inserted into the index table.<\/p>\n
It allows to modifies properties of a row like the This filter should not be used to query a facet value but simply used to modify it (like formatting a date). To setup rows and facet values you should use the filter [pastacode lang=”php” manual=”function%20prefix_row_data(%20%24row%2C%20%24object_id%2C%20%24facet%20)%20%7B%20%0A%0A%0A%09%2F%2F%20We%20only%20process%20date%20facet%20type.%0A%09if%20(%20’date’%20!%3D%3D%20%24facet%5B’type’%5D%20)%20%7B%0A%09%09return%20%24row%3B%20%0A%09%7D%20%0A%0A%0A%0A%09%2F%2F%20We%20change%20the%20date%20format%20to%20match%20date%20facet%20format%20(Y-m-d%20or%20Y-m-d%20h%3Ai%3As).%20%0A%09%24row%5B’facet_value’%5D%20%3D%20date(%20’Y-m-d’%2C%20strtotime(%20%24row%5B’facet_value’%5D%20)%20)%3B%20%0A%09%2F%2F%20Return%20row%20to%20insert%20in%20the%20index%20table.%20%0A%09return%20%24row%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Findexer%2Frow’%2C%20’prefix_row_data’%2C%2010%2C%203%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":" \/indexer\/row This filter is called before a row is inserted into the index table. It allows to modifies properties of a row like the facet_value and facet_name This filter should not be used to query a facet value but simply used to modify it (like formatting a date). To setup rows and facet values you…<\/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-4891","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\/4891","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=4891"}],"version-history":[{"count":4,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4891\/revisions"}],"predecessor-version":[{"id":5507,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4891\/revisions\/5507"}],"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=4891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}facet_value<\/code> and facet_name<\/code><\/p>\nwp_grid_builder\/indexer\/index_object<\/a><\/code><\/p>\n\n\n
\n Argument<\/td>\n Type<\/td>\n Description<\/td>\n<\/tr>\n \n $row<\/td>\n array<\/td>\n Holds index row of the current object id<\/td>\n<\/tr>\n \n $object_id<\/td>\n integer<\/td>\n Post, term or user id to index<\/td>\n<\/tr>\n \n $facet<\/td>\n array<\/td>\n Holds facet settings<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n