LLMS_Shortcode::get_attribute( string $key, string $default = '' )

Get a specific attribute from the attributes array

Parameters Parameters


(string) (Required) attribute key to retrieve


(string) (Optional) if no attribute is set, this value will be used

Default value: ''

Top ↑

Return Return


Top ↑

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;

Top ↑

Changelog Changelog

Version Description
3.4.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.