learndash_course_grid_load_card_template( array $atts, WP_Post $post )
Loads the appropriate course grid card template.
Description #
This function retrieves and includes the template file based on the card layout specified in the attributes. It prepares post attributes for display in the template.
Parameters #
- $atts
-
(array) (Required) The shortcode attributes, must contain 'card' key for template selection.
- $post
-
(WP_Post) (Required) The post object for which to load the card template.
Return #
(void)
Source #
Changelog #
| Version | Description |
|---|---|
| 4.21.4 | Introduced. |