Browse: Home / Functions /


learndash_course_notstarted_shortcode( array $atts = array(),  string $content = '',  string $shortcode_slug = 'course_notstarted' )

Builds the [course_notstarted] shortcode output.

Description #

Shortcode that shows the content if the user has not started the course.

Parameters #


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

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

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'course_notstarted'

Return #

(string) The course_notstarted shortcode output.

Source #

File: includes/shortcodes/ld_course_notstarted.php

Changelog #

Version Description
2.1.0 Introduced.