learndash_quizinfo

learndash_quizinfo( array $attr )

Builds the ld_quiz_complete shortcode output.


Description #

Shortcode that displays the requested quiz information.


Parameters #

$attr

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

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


Return #

(string) The ld_quiz_complete shortcode output.


Source #

File: includes/shortcodes/ld_quizinfo.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.