pods_form_ui_field_pick_custom_values

The Pods - Custom Content Types and Fields pods form ui field pick custom values hook.

Description

apply_filters( 'pods_form_ui_field_pick_custom_values', (unknown) $custom, (string) $field_data_name, (unknown) $value, $array, (unknown) $pod, (unknown) $params_id ); 

Parameters (6)

0. $custom (unknown)
The custom.
1. $field_data_name (string)
The field data name.
2. $value (unknown)
The value.
3. $array
The array.
4. $pod (unknown)
The pod.
5. $params_id (unknown)
The params id.

Usage

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

Defined (3)

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

/classes/PodsAPI.php  
  1. $custom = apply_filters( 'pods_form_ui_field_pick_custom_values', $custom, $field_data[ 'name' ], $value, array_merge( $field_data, $options ), $pod, $params->id ); 
/classes/fields/pick.php  
  1. $custom = apply_filters( 'pods_form_ui_field_pick_custom_values', $custom, $name, $value, $options, $pod, $id ); 
  1. $custom = apply_filters( 'pods_form_ui_field_pick_custom_values', $custom, $name, $value, $options, $pod, $id, $object_params );