caldera_forms_easy_pods_autopopulate_label_field

The name of the Pods field to use for the label of the auto-populated field.

Description

apply_filters( 'caldera_forms_easy_pods_autopopulate_label_field', (string) $label_field, (array) $form, (Pods) $pod, (array) $easy_pod ); 

Parameters (4)

0. $label_field (string)
Name of field to use for labels
1. $form (array)
Form config
2. $pod (Pods)
Pods object
3. $easy_pod (array)
Easy Pod config

Usage

To run the hook, copy the example below.
  1. $label_field = apply_filters( 'caldera_forms_easy_pods_autopopulate_label_field', $label_field, $form, $pod, $easy_pod ); 
  2.  
  3. if ( !empty( $label_field ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the caldera_forms_easy_pods_autopopulate_label_field callback 
  2. function filter_caldera_forms_easy_pods_autopopulate_label_field( $label_field, $form, $pod, $easy_pod ) { 
  3. // make filter magic happen here... 
  4. return $label_field
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'caldera_forms_easy_pods_autopopulate_label_field', 'filter_caldera_forms_easy_pods_autopopulate_label_field', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'caldera_forms_easy_pods_autopopulate_label_field', 'filter_caldera_forms_easy_pods_autopopulate_label_field', 10, 4 ); 

Defined (1)

The filter is defined in the following location(s).

/classes/render/autopopulation.php  
  1. $label_field = apply_filters( 'caldera_forms_easy_pods_autopopulate_label_field', $label_field, $form, $pod, $easy_pod );