learndash_courseinfo

learndash_courseinfo( array $attr )

Builds the courseinfo shortcode output.


Description #

Shortcode that displays the requested course information.


Parameters #

$attr

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

  • 'show'
    (string) Optional. The course info field to display. Default 'course_title'.
  • 'user_id'
    (int|string) Optional. User ID. Default empty.
  • 'course_id'
    (int|string) Optional. Course ID. Default empty.
  • 'format'
    (int|string) Optional. Date display format. Default 'F j, Y, g:i a'.
  • 'seconds_format'
    (int|string) Optional. Seconds format. Default 'time'.
  • 'decimals'
    (int) Optional. The number of decimal points. Default 2.


Return #

(string) The courseinfo shortcode output.


Source #

File: includes/shortcodes/ld_courseinfo.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.