LLMS_Shortcode::get_attribute( string $key, string $default = '' )
Get a specific attribute from the attributes array
Parameters Parameters
- $key
-
(string) (Required) attribute key to retrieve
- $default
-
(string) (Optional) if no attribute is set, this value will be used
Default value: ''
Return Return
(mixed)
Source Source
File: includes/abstracts/abstract.llms.shortcode.php
public function get_attribute( $key, $default = '' ) { $attributes = $this->get_attributes(); if ( isset( $attributes[ $key ] ) ) { return $attributes[ $key ]; } return $default; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.4.3 | Introduced. |