Celebrate WordCamp USA with 30% OFF! Use coupon WC30 at checkout - Full terms

wsf_field_get_objects_by_meta

Description

The wsf_field_get_objects_by_meta PHP function returns fields that have a matching meta key and meta value.

The following meta keys may contain space delimited values that are searched independently.

  • class_field
  • class_field_wrapper

Usage

wsf_field_get_objects_by_meta( $form_object, $field_meta_key, $field_meta_value );

Parameters

  1. $form_object Form Object
    The form object.
  2. $field_meta_key String
    The field meta key.
  3. $field_meta_value String
    The field meta value.

Return

$field_array Array
An array of field objects matching the field meta key and meta value.