Browse: Home / Functions /

learndash_course_content_shortcode

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

Builds the [course_content] shortcode output.


Description #


Parameters #

$atts

(array) (Optional) The shortcode attributes.

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

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''

$shortcode_slug

(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 #

Changelog
Version Description
2.1.0 Introduced.