Browse: Home / Functions /

learndash_course_grid_prepare_template_post_attributes

learndash_course_grid_prepare_template_post_attributes( WP_Post|int $post,  array $atts = array(),  array $args = array() )

Prepares post attributes for the course grid template.


Description #

This function gathers all necessary information about a post to display in the course grid, including pricing, duration, students count, completion status, and other metadata needed for proper display in the grid layout.


Parameters #

$post

(WP_Post|int) (Required) The post object or post ID.

$atts

(array) (Optional) The shortcode attributes.

Default value: array()

$args

(array) (Optional) Additional arguments.

Default value: array()


Return #

(array) Array of post attributes for template display.


Source #

File: includes/course-grid/includes/functions.php


Changelog #

Changelog
Version Description
4.21.4 Introduced.