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

Builds the [courseinfo] shortcode output.


Description Description

Shortcode that displays the requested course information.


Parameters Parameters

$attr

(Optional) An array of shortcode attributes.

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

Default value: array()

$content

(Optional) The shortcode content.

Default value: ''


Top ↑

Return Return

(string) The courseinfo shortcode output.


Top ↑

Source Source

File: includes/shortcodes/ld_courseinfo.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.