wsf_field_get_objects_by_class

Description

The wsf_field_get_objects_by_class PHP function returns an array of field objects that have a particular class.

This function searches the following meta keys:

  • class_field
  • class_field_wrapper

Usage

wsf_field_get_objects_by_class( $form_object, $class_name );

Parameters

  1. $form_object Form Object
    The form object.
  2. $class_name String
    The class name to find field objects for.

Return

$field_array Array
An array of field objects that have matching class names.