Tribe__Tickets_Plus__Template::attr( mixed $index, mixed $default = null )
Return a specific attribute.
Topics
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; }