It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
WOOF_Collection :: tag_wrap( String $tag = li, String $name, Arguments $attr = array() )
- String The HTML tags
Wraps a given property from each of the items in the collection in the specified HTML tag with the given attributes.
String $tag = li
The NAME of the HTML tag to use (should not include the angled brackets, just the tag name).
The name of the property whose values will be wrapped in the given tag.
Arguments $attr = array()
An arguments array or string of the HTML attributes to include in each of the tags, while also allowing the following parameters:
- separator – a string to seperate each of the tags with, default “”