Browse: Home / Functions /

learndash_ld_group_check_shortcode

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

Builds the [ld_group] shortcode output.


Description #

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


Parameters #

$atts

(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 linebreaks with paragraph elements.

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''


Return #

(string) The ld_group shortcode output.


Source #

File: includes/shortcodes/ld_group.php


Changelog #

Changelog
Version Description
2.3.0 Introduced.