Browse: Home / Functions /


learndash_ld_group_check_shortcode( array $atts = array(),  string $content = '',  string $shortcode_slug = 'ld_group' )

Builds the [ld_group] shortcode output.

Description #

Shortcode to display content to users that have access to current group id.

Parameters #


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

  • 'group_id'
    (int) Course ID.
  • 'user_id'
    (int) User ID.
  • 'content'
    (string) The shortcode content.
  • 'autop'
    (boolean) Whether to replace line breaks with paragraph elements.

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'ld_group'

Return #

(string) The ld_group shortcode output.

Source #

File: includes/shortcodes/ld_group.php

Changelog #

Version Description
2.3.0 Introduced.