LLMS_Form_Validator::get_required_fields( array[] $fields )
Filters a list of fields down to only the required fields.
Parameters Parameters
- $fields
-
(array[]) (Required) Array of LifterLMS Form Field settings arrays.
Return Return
(array[])
Source Source
File: includes/forms/class-llms-form-validator.php
public function get_required_fields( $fields ) { return array_values( array_filter( $fields, function( $field ) { return ! empty( $field['required'] ); } ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |