learndash_quiz_shortcode

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

Builds the ld_quiz shortcode output.


Description #


Parameters #

$atts

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

$content

(string) (Optional) The shortcode content.

Default value: ''

$show_materials

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

Default value: false


Return #

(string) The ld_quiz shortcode output.


Source #

File: includes/shortcodes/ld_quiz.php