Formats, sanitizes, and returns/echos HTML element ID, classes, attributes, and data attributes.
Parameters
$idstringoptional- Element ID.
Default:
'' $classarrayoptional- Class args.
Default:
array() $datasarrayoptional- Data args.
Default:
array() $attsarrayoptional- Attributes.
Default:
array() $echobooloptional- True to echo else return.
Default:
false
Return
stringRelated
| Uses | Description |
|---|---|
evf_sanitize_classes() includes/evf-core-functions.php | Sanitize string of CSS classes. |
| Used by | Description |
|---|---|
EVF_Field_Date_Time::field_display()includes/fields/class-evf-field-date-time.php | Field display on the form front-end. |
EVF_Field_Date_Time::get_year_html()includes/fields/class-evf-field-date-time.php | Print HTML for year. |
EVF_Field_Date_Time::get_month_html()includes/fields/class-evf-field-date-time.php | Print HTML for month. |
EVF_Field_Date_Time::get_day_html()includes/fields/class-evf-field-date-time.php | Print HTML for day. |
EVF_Field_Checkbox::field_display()includes/fields/class-evf-field-checkbox.php | Field display on the form front-end. |
EVF_Field_Email::field_display()includes/fields/class-evf-field-email.php | Field display on the form front-end. |
EVF_Field_First_Name::field_display()includes/fields/class-evf-field-first-name.php | Field display on the form front-end. |
EVF_Field_Last_Name::field_display()includes/fields/class-evf-field-last-name.php | Field display on the form front-end. |
EVF_Field_Number::field_display()includes/fields/class-evf-field-number.php | Field display on the form front-end. |
EVF_Field_Radio::field_display()includes/fields/class-evf-field-radio.php | Field display on the form front-end. |
EVF_Field_Textarea::field_display()includes/fields/class-evf-field-textarea.php | Field display on the form front-end. |
EVF_Field_Text::field_display()includes/fields/class-evf-field-text.php | Field display on the form front-end. |
EVF_Field_URL::field_display()includes/fields/class-evf-field-url.php | Field display on the form front-end. |
EVF_Field_Select::field_display()includes/fields/class-evf-field-select.php | Field display on the form front-end. |
EVF_Field_AI::field_display()includes/fields/class-evf-field-ai.php | Field display on the form front-end. |
EVF_Shortcode_Form::recaptcha()includes/shortcodes/class-evf-shortcode-form.php | Google reCAPTCHA output if configured. |
EVF_Shortcode_Form::view()includes/shortcodes/class-evf-shortcode-form.php | Form view. |
EVF_Shortcode_Form::footer()includes/shortcodes/class-evf-shortcode-form.php | Form footer area. |
EVF_Shortcode_Form::messages()includes/shortcodes/class-evf-shortcode-form.php | Message. |
EVF_Shortcode_Form::description()includes/shortcodes/class-evf-shortcode-form.php | Description. |
EVF_Shortcode_Form::label()includes/shortcodes/class-evf-shortcode-form.php | Label. |
EVF_Shortcode_Form::wrapper_start()includes/shortcodes/class-evf-shortcode-form.php | Wrapper start. |