Browse: Home / Functions /

learndash_quizinfo

learndash_quizinfo( array $attr = array(),  string $content = '' )

Builds the [quizinfo] shortcode output.


Description #

Shortcode that displays the requested quiz information.


Parameters #

$attr

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

  • 'show'
    (string) The quiz info field to display.
  • 'user_id'
    (int|string) User ID.
  • 'quiz'
    (int|string) Quiz ID.
  • 'time'
    (int|string) Timestamp.
  • 'field_id'
    (string) ID of the field.
  • 'format'
    (string) Date display format. Default 'F j, Y, g:i a'.

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''


Return #

(string) The ld_quiz_complete shortcode output.


Source #

File: includes/shortcodes/ld_quizinfo.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.