learndash_profile

learndash_profile( array $atts )

Builds the ld_profile shortcode output.


Description #


Parameters #

$atts

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

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


Return #

(string) The ld_profile shortcode ouput.


Source #

File: includes/shortcodes/ld_profile.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.