LLMS_Form_Field::prepare_voucher()
Additional preparation for the special voucher field.
Return Return
(void)
Source Source
File: includes/forms/class-llms-form-field.php
protected function prepare_voucher() {
if ( ! $this->settings['required'] && $this->settings['toggleable'] ) {
$this->settings['label'] = sprintf( '<a class="llms-voucher-toggle" id="llms-voucher-toggle" href="#">%s</a>', $this->settings['label'] );
$this->settings['attributes']['style'] = 'display:none;';
$this->settings['data_store_key'] = false;
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |