Browse: Home / Functions /

learndash_profile

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

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) Search query string.
  • 'quiz_num'
    (false|int) Number of quiz attempts to show per course listing

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''

$shortcode_slug

(string) (Optional) The shortcode slug.

Default value: 'ld_profile'


Return #

(string) The ld_profile shortcode output.


Source #

File: includes/shortcodes/ld_profile.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.