pods_pfat_auto_pods_override

Filter to override all settings for which templates are used.

Description

(array) apply_filters( 'pods_pfat_auto_pods_override', (null) $null ); 

Note: If this filter does not return null, all back-end settings are ignored. To add to settings with a filter, use pods_pfat_auto_pods;

Returns (array)

Settings arrays for each post type.

Parameters (1)

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

Usage

To run the hook, copy the example below.
  1. $null = apply_filters( 'pods_pfat_auto_pods_override', $null ); 
  2.  
  3. if ( !empty( $null ) ) { 
  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_override callback 
  2. function filter_pods_pfat_auto_pods_override( $null ) { 
  3. // make filter magic happen here... 
  4. return $null
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pods_pfat_auto_pods_override', 'filter_pods_pfat_auto_pods_override', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pods_pfat_auto_pods_override', 'filter_pods_pfat_auto_pods_override', 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_override', null );