Browse: Home / Functions /


learndash_user_groups( array $attr = array(),  string $content = '',  string $shortcode_slug = 'user_groups' )

Builds the [user_groups] shortcode output.

Description #

Parameters #


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

  • 'user_id'
    (int) User ID. Default to current user ID.

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'user_groups'

Return #

(string) The output for user_groups shortcode.

Source #

File: includes/shortcodes/ld_user_groups.php

Changelog #

Version Description
2.1.0 Introduced.