learndash_usermeta_shortcode

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

[usermeta] shortcode


Description #

This shortcode takes a parameter named field, which is the name of the user meta data field to be displayed. Example: [usermeta field="display_name"] would display the user’s Display Name.


Parameters #

$attr

(array) (Required) shortcode attributes

$content

(string) (Optional) content of shortcode

Default value: ''


Return #

(string) output of shortcode


Source #

File: includes/shortcodes/ld_usermeta.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.