SFWD_LMS::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 #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |