wp_templating_constants

Defines templating related WordPress constants.

Description

wp_templating_constants(); 

Usage

  1. if ( !function_exists( 'wp_templating_constants' ) ) { 
  2. require_once ABSPATH . WPINC . '/default-constants.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_templating_constants(); 
  7.  

Defined (1)

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

/wp-includes/default-constants.php  
  1. function wp_templating_constants() { 
  2. /** 
  3. * Filesystem path to the current active template directory 
  4. * @since 1.5.0 
  5. */ 
  6.  
  7. /** 
  8. * Filesystem path to the current active template stylesheet directory 
  9. * @since 2.1.0 
  10. */ 
  11.  
  12. /** 
  13. * Slug of the default theme for this install. 
  14. * Used as the default theme when installing new sites. 
  15. * It will be used as the fallback if the current theme doesn't exist. 
  16. * @since 3.0.0 
  17. * @see WP_Theme::get_core_default_theme() 
  18. */ 
  19. if ( !defined('WP_DEFAULT_THEME') ) 
  20. define( 'WP_DEFAULT_THEME', 'twentyseventeen' ); 
  21.