Browse: Home / Functions /

learndash_profile

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

Builds the [ld_profile] shortcode output.


Description #


Parameters #

$atts

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

  • 'user_id'
    (int) User ID. Defaults to current user ID.
  • 'per_page'
    (false|int) Number of profiles per page. Default false.
  • 'order'
    (string) Designates ascending ('ASC') or descending ('DESC') order. Default 'DESC'.
  • 'orderby'
    (string) The name of the field to order posts by. Default 'ID'.
  • 'course_points_user'
    (int) Whether to show user course points. Default 'yes'.
  • 'expand_all'
    (boolean) Whether to expand all. Default False.
  • 'profile_link'
    (string) User profile link. Default 'yes'.
  • 'show_header'
    (string) Whether to show header. Default 'yes'.
  • 'show_quizzes'
    (string) Whether to show quizzes. Default 'yes'.
  • 'show_search'
    (string) Whether to allow search. Default 'yes'.
  • 'search'
    (string) Serch query string.

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''


Return #

(string) The ld_profile shortcode ouput.


Source #

File: includes/shortcodes/ld_profile.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.