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