Browse: Home / Functions /


learndash_course_progress( array $atts = array(),  string $content = '',  string $shortcode_slug = 'learndash_course_progress' )

Builds the [learndash_course_progress] shortcode output.

Description #

Parameters #


(array) (Optional) An array of shortcode attributes.

  • 'course_id'
    (int) Course ID. Default 0.
  • 'user_id'
    (int) User ID. Default 0.
  • 'array'
    (boolean) Whether to return array. Default false.

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'learndash_course_progress'

Return #

(string|array) The learndash_course_progress shortcode output.

Source #

File: includes/shortcodes/ld_course_progress.php

Changelog #

Version Description
2.1.0 Introduced.