LLMS_Form_Field::get_deprecated_html_attributes()

Ensure deprecated settings still function.


Description Description

The legacy "min_length", "max_length", and "style" settings should now be passed via the "attributes" setting.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/forms/class-llms-form-field.php

245
246
247
248
249
250
251
252
253
254
255
256
protected function get_deprecated_html_attributes() {
 
    $attrs = array();
    foreach ( array( 'min_length', 'max_length', 'style' ) as $attr ) {
        if ( isset( $this->settings[ $attr ] ) ) {
            $attrs[ str_replace( '_', '', $attr ) ] = esc_attr( $this->settings[ $attr ] );
        }
    }
 
    return $attrs;
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.