Browse: Home / Functions /

learndash_user_groups

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

Builds the [user_groups] shortcode output.


Description #


Parameters #

$attr

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

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

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''

$shortcode_slug

(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 #

Changelog
Version Description
2.1.0 Introduced.