{"id":4889,"date":"2020-06-03T12:23:57","date_gmt":"2020-06-03T12:23:57","guid":{"rendered":"https:\/\/the7kennisbank.nl\/?p=4889"},"modified":"2020-06-09T13:22:23","modified_gmt":"2020-06-09T13:22:23","slug":"filter-card-tag","status":"publish","type":"post","link":"https:\/\/the7kennisbank.nl\/en\/wp-grid-builder\/filter-card-tag\/","title":{"rendered":"Filter card tag"},"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>\n<div class=\"container flex items-center justify-between\">\n<h1 class=\"entry-title\">\/card\/tag<\/h1>\n<\/div>\n<\/div>\n<div id=\"article-wrapper\" class=\"container\">\n<p>This filter is called when a card is lay out.<\/p>\n<p>It allows to modifies tag name of card holders in grids. By default the tag name is <code>article<\/code>. Because, depending of the markup of your page, you may need to change this tag to be 100% W3C compliant.<\/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>$tag<\/td>\n<td>string<\/td>\n<td>Tag name used for the card holder<\/td>\n<\/tr>\n<tr>\n<td>$card<\/td>\n<td>array<\/td>\n<td>Holds card layers and blocks definitions<\/td>\n<\/tr>\n<tr>\n<td>$settings<\/td>\n<td>object<\/td>\n<td>Holds grid settings<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"code-syntax-block code-syntax-wrapper\">\n<p>[pastacode lang=&#8221;php&#8221; manual=&#8221;function%20prefix_card_tag(%20%24tag%2C%20%24card%2C%20%24settings%20)%20%7B%0A%0A%0A%09%2F%2F%20If%20the%20current%20grid%20has%20gallery%20post%20type.%20%0A%09if%20(%20in_array(%20&#8217;gallery&#8217;%2C%20(array)%20%24settings-%3Epost_type%2C%20true%20)%20)%20%7B%0A%09%09%24tag%20%3D%20&#8217;div&#8217;%3B%20%0A%09%7D%0A%0A%09return%20%24tag%3B%0A%09%0A%7D%0A%0Aadd_filter(%20&#8217;wp_grid_builder%2Fcard%2Ftag&#8217;%2C%20&#8217;prefix_card_tag&#8217;%2C%2010%2C%203%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>\/card\/tag This filter is called when a card is lay out. It allows to modifies tag name of card holders in grids. By default the tag name is article. Because, depending of the markup of your page, you may need to change this tag to be 100% W3C compliant. Argument Type Description $tag string Tag&hellip;<\/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-4889","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\/4889","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=4889"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4889\/revisions"}],"predecessor-version":[{"id":5082,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4889\/revisions\/5082"}],"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=4889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}