PHP Class Pods_Templates_Auto_Template_Settings, pods

This class replaced Pods_PFAT class
Since: 2.5.5
Show file Open project: pods-framework/pods

Public Methods

Method Description
__construct ( ) Constructor for the Pods_PFAT class
archive_test ( ) : boolean | mixed | null | void Test if archive is set for post types that don't have archives.
archive_warning ( ) Throw admin warnings for post types that have archive templates set, but don't support archives
front_end ( boolean $load_in_admin = false ) : Pods_PFAT_Frontend Include/ init the front end class on the front end only
get_template_titles ( ) : string[] Get titles of all Pods Templates
init ( ) Initializes the class
options ( array $options, array $pod ) : array Adds options for this plugin under the Frontier Auto Template tab.
reset ( string $option, mixed $old_value, mixed $value ) Reset the transients for front-end class when Pods are saved.
reseter ( ) Delete transients that stores the settings.
tab ( array $tabs, array $pod, array $addtl_args ) : array The Frontier Auto Display option tab.

Method Details

__construct() public method

Sets up all the appropriate hooks and actions within the plugin.
Since: 2.5.5
public __construct ( )

archive_test() public method

Test if archive is set for post types that don't have archives.
Since: 2.4.5
public archive_test ( ) : boolean | mixed | null | void
return boolean | mixed | null | void

archive_warning() public method

Throw admin warnings for post types that have archive templates set, but don't support archives
Since: 2.4.5
public archive_warning ( )

front_end() public method

Include/ init the front end class on the front end only
Since: 2.5.5
public front_end ( boolean $load_in_admin = false ) : Pods_PFAT_Frontend
$load_in_admin boolean Optional. Whether to load in admin. Default is false.
return Pods_PFAT_Frontend

get_template_titles() public method

Get titles of all Pods Templates
Since: 2.4.5
public get_template_titles ( ) : string[]
return string[] Array of template names

init() public method

Initializes the class
Since: 2.5.5
public init ( )

options() public method

Adds options for this plugin under the Frontier Auto Template tab.
Since: 2.5.5
public options ( array $options, array $pod ) : array
$options array
$pod array
return array

reset() public method

Reset the transients for front-end class when Pods are saved.
Since: 2.5.5
public reset ( string $option, mixed $old_value, mixed $value )
$option string
$old_value mixed
$value mixed

reseter() public method

Delete transients that stores the settings.
Since: 2.5.5
public reseter ( )

tab() public method

The Frontier Auto Display option tab.
Since: 2.5.5
public tab ( array $tabs, array $pod, array $addtl_args ) : array
$tabs array
$pod array
$addtl_args array
return array