Browse: Home / Functions /

learndash_get_course_step_attributes

learndash_get_course_step_attributes( int $step_id,  int $course_id,  int $user_id )

Gets the course step attributes.


Description #

Populates an array of attributes about the step, if it’s a sample or if it isn’t currently available


Parameters #

$step_id

(int) (Required) Post ID.

$course_id

(int) (Optional) Course ID.

$user_id

(int) (Optional) User ID.


Return #

(array) Attributes including label, icon and class name.


Source #

File: themes/ld30/includes/helpers.php


Changelog #

Changelog
Version Description
4.2.0 Introduced.