LLMS_Form_Field::get_label_position()
Determines if the label element should be rendered before the field or after it.
Return Return
(string)
Source Source
File: includes/forms/class-llms-form-field.php
protected function get_label_position() {
$pos = 'before';
if ( in_array( $this->settings['type'], array( 'checkbox', 'radio' ), true ) && empty( $this->settings['options'] ) ) {
$pos = 'after';
}
return $pos;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |