pods_data_fetch

The Pods - Custom Content Types and Fields pods data fetch hook.

Description

apply_filters( 'pods_data_fetch', (unknown) $this_row, (unknown) $id, (number) $this_row_number, (unknown) $instance ); 

Parameters (4)

0. $this_row (unknown)
The this row.
1. $id (unknown)
The id.
2. $this_row_number (number)
The this row number.
3. $instance (unknown)
The this.

Usage

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

Defined (1)

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

/classes/PodsData.php  
  1. $this->row = apply_filters( 'pods_data_fetch', $this->row, $id, $this->row_number, $this );