\/card\/attributes<\/h1>\n<\/div>\n<\/div>\n\nThis filter is called before a card is lay out.<\/p>\n
It allows to modify card attributes like the number of columns<\/code> or rows<\/code>, content_background<\/code>, overlay_background<\/code>, content_color_scheme<\/code>, overlay_color_scheme<\/code> or class<\/code><\/p>\n\n\n\nArgument<\/td>\n Type<\/td>\n Description<\/td>\n<\/tr>\n \n$atts<\/td>\n array<\/td>\n Holds card attributes<\/td>\n<\/tr>\n \n$card<\/td>\n object<\/td>\n Holds card layout (layers\/blocks) definition<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n[pastacode lang=”php” manual=”function%20prefix_card_attributes(%20%24atts%2C%20%24card%20)%20%7B%0A%0A%09%2F%2F%20We%20get%20post%20in%20the%20custom%20loop%20of%20the%20plugin.%20%0A%09%24post%20%3D%20wpgb_get_post()%3B%0A%0A%09%2F%2F%20If%20current%20post%20ID%20is%20equal%20to%201%2C%20change%20number%20of%20rows%2Fcolumns.%20%0A%09if%20(%201%20%3D%3D%3D%20%24post-%3EID%20)%20%7B%20%0A%0A%09%09%24atts%5B’rows’%5D%20%3D%201%3B%0A%09%09%24atts%5B’columns’%5D%20%3D%202%3B%0A%09%0A%09%7D%0A%0A%09return%20%24atts%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fcard%2Fattributes’%2C%20’prefix_card_attributes’%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":"
\/card\/attributes This filter is called before a card is lay out. It allows to modify card attributes like the number of columns or rows, content_background, overlay_background, content_color_scheme, overlay_color_scheme or class Argument Type Description $atts array Holds card attributes $card object Holds card layout (layers\/blocks) definition [pastacode lang=”php” manual=”function%20prefix_card_attributes(%20%24atts%2C%20%24card%20)%20%7B%0A%0A%09%2F%2F%20We%20get%20post%20in%20the%20custom%20loop%20of%20the%20plugin.%20%0A%09%24post%20%3D%20wpgb_get_post()%3B%0A%0A%09%2F%2F%20If%20current%20post%20ID%20is%20equal%20to%201%2C%20change%20number%20of%20rows%2Fcolumns.%20%0A%09if%20(%201%20%3D%3D%3D%20%24post-%3EID%20)%20%7B%20%0A%0A%09%09%24atts%5B’rows’%5D%20%3D%201%3B%0A%09%09%24atts%5B’columns’%5D%20%3D%202%3B%0A%09%0A%09%7D%0A%0A%09return%20%24atts%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fcard%2Fattributes’%2C%20’prefix_card_attributes’%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-4884","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\/4884","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=4884"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4884\/revisions"}],"predecessor-version":[{"id":5100,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4884\/revisions\/5100"}],"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=4884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
This filter is called before a card is lay out.<\/p>\n
It allows to modify card attributes like the number of [pastacode lang=”php” manual=”function%20prefix_card_attributes(%20%24atts%2C%20%24card%20)%20%7B%0A%0A%09%2F%2F%20We%20get%20post%20in%20the%20custom%20loop%20of%20the%20plugin.%20%0A%09%24post%20%3D%20wpgb_get_post()%3B%0A%0A%09%2F%2F%20If%20current%20post%20ID%20is%20equal%20to%201%2C%20change%20number%20of%20rows%2Fcolumns.%20%0A%09if%20(%201%20%3D%3D%3D%20%24post-%3EID%20)%20%7B%20%0A%0A%09%09%24atts%5B’rows’%5D%20%3D%201%3B%0A%09%09%24atts%5B’columns’%5D%20%3D%202%3B%0A%09%0A%09%7D%0A%0A%09return%20%24atts%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fcard%2Fattributes’%2C%20’prefix_card_attributes’%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":" \/card\/attributes This filter is called before a card is lay out. It allows to modify card attributes like the number of columns or rows, content_background, overlay_background, content_color_scheme, overlay_color_scheme or class Argument Type Description $atts array Holds card attributes $card object Holds card layout (layers\/blocks) definition [pastacode lang=”php” manual=”function%20prefix_card_attributes(%20%24atts%2C%20%24card%20)%20%7B%0A%0A%09%2F%2F%20We%20get%20post%20in%20the%20custom%20loop%20of%20the%20plugin.%20%0A%09%24post%20%3D%20wpgb_get_post()%3B%0A%0A%09%2F%2F%20If%20current%20post%20ID%20is%20equal%20to%201%2C%20change%20number%20of%20rows%2Fcolumns.%20%0A%09if%20(%201%20%3D%3D%3D%20%24post-%3EID%20)%20%7B%20%0A%0A%09%09%24atts%5B’rows’%5D%20%3D%201%3B%0A%09%09%24atts%5B’columns’%5D%20%3D%202%3B%0A%09%0A%09%7D%0A%0A%09return%20%24atts%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fcard%2Fattributes’%2C%20’prefix_card_attributes’%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-4884","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\/4884","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=4884"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4884\/revisions"}],"predecessor-version":[{"id":5100,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4884\/revisions\/5100"}],"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=4884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}columns<\/code> or rows<\/code>, content_background<\/code>, overlay_background<\/code>, content_color_scheme<\/code>, overlay_color_scheme<\/code> or class<\/code><\/p>\n\n\n
\n Argument<\/td>\n Type<\/td>\n Description<\/td>\n<\/tr>\n \n $atts<\/td>\n array<\/td>\n Holds card attributes<\/td>\n<\/tr>\n \n $card<\/td>\n object<\/td>\n Holds card layout (layers\/blocks) definition<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n