Browse: Home / Functions /


learndash_quiz_shortcode( array $atts,  string $content = '',  boolean $show_materials = false )

Builds the ld_quiz shortcode output.

Description #

Parameters #


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

  • 'course_id'
    (int) Optional. Course ID. Default 0.
  • 'quiz_id'
    (int) Optional. Quiz ID. Default 0.
  • 'quiz_pro_id'
    (int) Optional. Quiz pro ID. Default 0.


(string) (Optional) The shortcode content.

Default value: ''


(boolean) (Optional) Whether to show quiz materials.

Default value: false

Return #

(string) The ld_quiz shortcode output.

Source #

File: includes/shortcodes/ld_quiz.php