Browse: Home / Functions /

learndash_course_expire_status_shortcode

learndash_course_expire_status_shortcode( array $atts = array(),  string $content = '' )

Builds the [ld_course_expire_status] shortcode output.


Description #


Parameters #

$atts

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

  • 'course_id'
    (int) Course ID. Default current course ID.
  • 'user_id'
    (int) User ID. Default current user ID.
  • 'format'
    (string) The date format. Default value of date_format option.
  • 'autop'
    (boolean) Whether to replace linebreaks with paragraph elements. Default true.
  • 'label_before'
    (string) The content to print before label. Default a translatable string.
  • 'label_after'
    (string) The content to print after label. Default a translatable string.

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''


Return #

(string) The ld_course_expire_status shortcode output.


Source #

File: includes/shortcodes/ld_course_expire_status.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.