Tribe__Tickets__Editor__Template::attr( $index, mixed $default = null )
Return a specific attribute
Contents
Parameters
- $default
-
(mixed) (Optional)
Default value: null
Return
(mixed)
Source
File: src/Tribe/Editor/Template.php
public function attr( $index, $default = null ) {
$attribute = $this->get( array_merge( array( 'attributes' ), (array) $index ), array(), $default );
return $attribute;
}
Changelog
| Version | Description |
|---|---|
| 4.9 | Introduced. |