/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 name used for the card holder |
| $card | array | Holds card layers and blocks definitions |
| $settings | object | Holds grid settings |
[pastacode lang=”php” manual=”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’gallery’%2C%20(array)%20%24settings-%3Epost_type%2C%20true%20)%20)%20%7B%0A%09%09%24tag%20%3D%20’div’%3B%20%0A%09%7D%0A%0A%09return%20%24tag%3B%0A%09%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fcard%2Ftag’%2C%20’prefix_card_tag’%2C%2010%2C%203%20)%3B” message=”” highlight=”” provider=”manual”/]

