Browse: Home / Functions /


learndash_course_content_shortcode( array $atts = array(),  string $content = '',  string $shortcode_slug = 'course_content' )

Builds the [course_content] shortcode output.

Description #

Parameters #


(array) (Optional) The shortcode attributes.

  • 'course_id'
    (int) The ID of the course. Default 0.
  • 'num'
    (boolean|int) Unused Default false.

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'course_content'

Return #

(string) The output of the shortcode.

Source #

File: includes/shortcodes/ld_course_content.php

Changelog #

Version Description
2.1.0 Introduced.