MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
Generates an enitre HTML tag with opening tag, text, and closing tag for a given tag name. Note that if no text is specified, this tag will be assumed to be self closing, and will have the same effect as calling the WOOF_HTML::open.
The tag name (do not include the angled brackets)
An arguments Array or String of HTML attributes to include in the tag
String $text = null
The text inside the HTML tag, which could be plain text, or other HTML tags.
Boolean $empty_attr = false
If true, attributes that are empty will be included in the HTML.