Browse: Home / Functions /

learndash_course_content_shortcode

learndash_course_content_shortcode( array $atts = array(),  string $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: ''


Return #

(string) The output of the shortcode.


Source #

File: includes/shortcodes/ld_course_content.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.