b2_format_html_attributes()
b2_format_html_attributes(array $atts): string
Formats an array of attributes into a string to be used inside a HTML tag.
The first attribute will contain a single space before it.
E.g.
b2_format_html_attributes( array( 'data-thing' => 'foo', 'class' = 'test' ) )
would give this string:
' data-thing="foo" class="test"'
Parameters
array | $atts | The attributes to format |
Returns
string —The attribute string