is_pod_page_template

Check for a specific page template for the current pod page.

Description

is_pod_page_template( (null) $template = null ); 

Parameters (1)

0. $template — Optional. (null) => null
The theme template file

Usage

  1. if ( !function_exists( 'is_pod_page_template' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'pods-custom-content-types-and-fields/components/Pages.php'; 
  3.  
  4. // The theme template file 
  5. $template = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = is_pod_page_template($template); 
  9.  

Defined (1)

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

/components/Pages.php  
  1. function is_pod_page_template ( $template = null ) { 
  2. if ( false !== Pods_Pages::$exists && $template == Pods_Pages::$exists[ 'page_template' ] ) 
  3. return true; 
  4.  
  5. return false;