pods_pfat_auto_pods

Add to or change settings.

Description

(array) apply_filters( 'pods_pfat_auto_pods', (array) $auto_pods ); 

Use this filter to change or add to the settings set in the back-end for this plugin. Has no effect if pods_pfat_auto_pods_override filter is being used.

Returns (array)

Settings arrays for each post type.

Parameters (1)

0. $auto_pods (array)
Array of parameters to use instead of those from settings.

Usage

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

Defined (1)

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

/components/Templates/includes/auto-template/Pods_Templates_Auto_Template_Front_End.php  
  1. $auto_pods = apply_filters( 'pods_pfat_auto_pods', $auto_pods );