LLMS_Shortcode_User_Info::set_attributes( array $atts = array() )
Merge user attributes with default attributes.
Parameters Parameters
- $atts
-
(array) (Optional) User-submitted shortcode attributes.
Default value: array()
Return Return
(array)
Source Source
File: includes/shortcodes/class-llms-shortcode-user-info.php
protected function set_attributes( $atts = array() ) {
// Allow `key` attribute to be submitted without a key, eg: [llms-user first_name].
if ( isset( $atts[0] ) ) {
$atts['key'] = $atts[0];
unset( $atts[0] );
}
return parent::set_attributes( $atts );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |