tribe_get_attributes()

Parse input values into a valid array of attributes to be used in the templates.


Parameters #

$attributes,...

(mixed) (Required) unlimited Any amount of params to be rendered as attributes.


Top ↑

Return #

(array<string>) An array of the parsed string attributes.


Top ↑

Source #

File: src/functions/template-tags/html.php

function tribe_get_attributes() {
	$element_attributes = new Element_Attributes( func_get_args() );
	return $element_attributes->get_attributes_array();
}

Top ↑

Changelog #

Changelog
Version Description
4.12.3 Introduced.