Browse: Home / Functions /


learndash_groupinfo_shortcode( array $attr = array(),  string $content = '',  string $shortcode_slug = 'groupinfo' )

Builds the [groupinfo] shortcode output.

Description #

Parameters #


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

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

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'groupinfo'

Return #

(string) shortcode output

Source #

File: includes/shortcodes/ld_groupinfo.php

Changelog #

Version Description
3.2.0 Introduced.