pods_view_output

The Pods - Custom Content Types and Fields pods view output hook.

Description

apply_filters( 'pods_view_output', (unknown) $output, (unknown) $view, (unknown) $data, (unknown) $expires, (unknown) $cache_mode ); 

Parameters (5)

0. $output (unknown)
The output.
1. $view (unknown)
The view.
2. $data (unknown)
The data.
3. $expires (unknown)
The expires.
4. $cache_mode (unknown)
The cache mode.

Usage

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

Defined (1)

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

/classes/PodsView.php  
  1. $output = apply_filters( 'pods_view_output', $output, $view, $data, $expires, $cache_mode );