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: ''


Top ↑

Return Return

(mixed)


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

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.