pods_pods_filters

Filter the HTML output of filters().

Description

apply_filters( 'pods_pods_filters', (string) $output, (array) $params, (object|Pods) $instance ); 

Parameters (3)

0. $output (string)
The output.
1. $params (array)
Params array passed to filters().
2. $instance (object|Pods)
Current Pods object.

Usage

To run the hook, copy the example below.
  1. $output = apply_filters( 'pods_pods_filters', $output, $params, $instance ); 
  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_pods_filters callback 
  2. function filter_pods_pods_filters( $output, $params, $instance ) { 
  3. // make filter magic happen here... 
  4. return $output
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pods_pods_filters', 'filter_pods_pods_filters', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pods_pods_filters', 'filter_pods_pods_filters', 10, 3 ); 

Defined (1)

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

/classes/Pods.php  
  1. return apply_filters( 'pods_pods_filters', $output, $params, $this );