LLMS_Shortcode_Hide_Content::get_default_attributes()
Get default shortcode attributes
Description Description
Retrieves an array of default attributes which are automatically merged with the user submitted attributes and passed to $this->get_output()
Return Return
(array)
Source Source
File: includes/shortcodes/class.llms.shortcode.hide.content.php
protected function get_default_attributes() {
return array(
'membership' => '', // For backwards compat, use id moving forward/
'message' => '',
'id' => get_the_ID(),
'relation' => 'all',
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.5.1 | |
| 3.24.1 | Introduced. |