learndash_course_inprogress_shortcode

learndash_course_inprogress_shortcode( array $atts = array(),  string $content = '' )

Builds the course_inprogress shortcode output.


Description #

Shortcode that shows the content if the user is in progress on the course.


Parameters #

$atts

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

  • 'content'
    (string) Optional. The shortcode content.
  • 'course_id'
    (int) Optional. Course ID. Default false.
  • 'user_id'
    (int) Optional. User ID. Default false.
  • 'autop'
    (boolean) Optional. Whether to replace linebreaks with paragraph elements. Default true.

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''


Return #

(string) The course_inprogress shortcode output.


Source #

File: includes/shortcodes/ld_course_inprogress.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.