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 #
- $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 line breaks with paragraph elements.
Default value: array()
- 'group_id'
- $content
-
(string) (Optional) The shortcode content.
Default value: ''
- $shortcode_slug
-
(string) (Optional) The shortcode slug.
Default value: 'ld_group'
Return #
(string) The ld_group
shortcode output.
Source #
Changelog #
Version | Description |
---|---|
2.3.0 | Introduced. |