Browse: Home / Functions /

learndash_user_groups

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

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: ''


Return #

(string) The output for user_groups shortcode.


Source #

File: includes/shortcodes/ld_user_groups.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.