pods_form_ui_field_pick_autocomplete_lookup

The Pods - Custom Content Types and Fields pods form ui field pick autocomplete lookup hook.

Description

apply_filters( 'pods_form_ui_field_pick_autocomplete_lookup', (unknown) $lookup_where, (unknown) $data_params_query, (string) $name, (unknown) $value, (unknown) $options, (unknown) $pod, (unknown) $id, (unknown) $object_params, (unknown) $search_data ); 

Parameters (9)

0. $lookup_where (unknown)
The lookup where.
1. $data_params_query (unknown)
The data params query.
2. $name (string)
The name.
3. $value (unknown)
The value.
4. $options (unknown)
The options.
5. $pod (unknown)
The pod.
6. $id (unknown)
The id.
7. $object_params (unknown)
The object params.
8. $search_data (unknown)
The search data.

Usage

To run the hook, copy the example below.
  1. $lookup_where = apply_filters( 'pods_form_ui_field_pick_autocomplete_lookup', $lookup_where, $data_params_query, $name, $value, $options, $pod, $id, $object_params, $search_data ); 
  2.  
  3. if ( !empty( $lookup_where ) ) { 
  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_autocomplete_lookup callback 
  2. function filter_pods_form_ui_field_pick_autocomplete_lookup( $lookup_where, $data_params_query, $name, $value, $options, $pod, $id, $object_params, $search_data ) { 
  3. // make filter magic happen here... 
  4. return $lookup_where
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pods_form_ui_field_pick_autocomplete_lookup', 'filter_pods_form_ui_field_pick_autocomplete_lookup', 10, 9 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pods_form_ui_field_pick_autocomplete_lookup', 'filter_pods_form_ui_field_pick_autocomplete_lookup', 10, 9 ); 

Defined (1)

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

/classes/fields/pick.php  
  1. $lookup_where = apply_filters( 'pods_form_ui_field_pick_autocomplete_lookup', $lookup_where, $data_params[ 'query' ], $name, $value, $options, $pod, $id, $object_params, $search_data );