pods_form_pre_field

Runs before a field is outputted.

Description

do_action( 'pods_form_pre_field', (unknown) $field, (unknown) $fields, (unknown) $pod, (unknown) $params ); 

Parameters (4)

0. $field (unknown)
The field.
1. $fields (unknown)
The fields.
2. $pod (unknown)
The pod.
3. $params (unknown)
The params.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'pods_form_pre_field', $field, $fields, $pod, $params ); 
The following example is for adding a hook callback.
  1. // define the pods_form_pre_field callback 
  2. function action_pods_form_pre_field( $field, $fields, $pod, $params ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'pods_form_pre_field', 'action_pods_form_pre_field', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'pods_form_pre_field', 'action_pods_form_pre_field', 10, 4 ); 

Defined (1)

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

/ui/front/form.php  
  1. do_action( 'pods_form_pre_field', $field, $fields, $pod, $params );