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_HTML :: input_radio_group( String $name, String $id, Array $items, String $val, String $item_open, String $item_close, Boolean $disabled = false )
Generates a group of radio buttons and their associated labels.
Note: The items array passed to this method is an associative array of the values in each radio button keyed by the labels used.
The name attribute of all of the input elements in the HTML code.
The BASE id of each of the input elements in the HTML code. This will be suffixed by the values in the items array (sanitized with dashes), to ensure that all checkboxes have a meaningful ID.
An associative array of the checkbox values, keyed by the labels to be used.
The current (checked) value.
HTML code to insert before each radio button.
HTML code to insert after each radio button.
Boolean $disabled = false
Whether the radio buttons should be disabled.