wp_templating_constants

The timeline below displays how wordpress function wp_templating_constants has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.4

/**
 * Defines templating-related WordPress constants.
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory.
     *
     * @since 1.5.0
     * @deprecated 6.4.0 Use get_template_directory() instead.
     * @see get_template_directory()
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory.
     *
     * @since 2.1.0
     * @deprecated 6.4.0 Use get_stylesheet_directory() instead.
     * @see get_stylesheet_directory()
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the active theme doesn't exist.
     *
     * @since 3.0.0
     *
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentytwentyfour');
    }
}

WordPress Version: 6.1

/**
 * Defines templating-related WordPress constants.
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory.
     *
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory.
     *
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the active theme doesn't exist.
     *
     * @since 3.0.0
     *
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentytwentythree');
    }
}

WordPress Version: 5.9

/**
 * Defines templating-related WordPress constants.
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory.
     *
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory.
     *
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     *
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentytwentytwo');
    }
}

WordPress Version: 5.6

/**
 * Defines templating-related WordPress constants.
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory.
     *
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory.
     *
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     *
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentytwentyone');
    }
}

WordPress Version: 5.5

/**
 * Defines templating-related WordPress constants.
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory.
     *
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory.
     *
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     *
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentytwenty');
    }
}

WordPress Version: 5.4

/**
 * Defines templating-related WordPress constants.
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory.
     *
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory.
     *
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentytwenty');
    }
}

WordPress Version: 5.3

/**
 * Defines templating related WordPress constants
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory
     *
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory
     *
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentytwenty');
    }
}

WordPress Version: 5.1

/**
 * Defines templating related WordPress constants
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory
     *
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory
     *
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentynineteen');
    }
}

WordPress Version: 5.0

/**
 * Defines templating related WordPress constants
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentynineteen');
    }
}

WordPress Version: 4.9

/**
 * Defines templating related WordPress constants
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this installation.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentyseventeen');
    }
}

WordPress Version: 4.7

/**
 * Defines templating related WordPress constants
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this install.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentyseventeen');
    }
}

WordPress Version: 4.4

/**
 * Defines templating related WordPress constants
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this install.
     * Used as the default theme when installing new sites.
     * It will be used as the fallback if the current theme doesn't exist.
     *
     * @since 3.0.0
     * @see WP_Theme::get_core_default_theme()
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentysixteen');
    }
}

WordPress Version: 4.1

/**
 * Defines templating related WordPress constants
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this install.
     * Used as the default theme when installing new sites.
     * Will be used as the fallback if the current theme doesn't exist.
     * @since 3.0.0
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentyfifteen');
    }
}

WordPress Version: 3.8

/**
 * Defines templating related WordPress constants
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this install.
     * Used as the default theme when installing new sites.
     * Will be used as the fallback if the current theme doesn't exist.
     * @since 3.0.0
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentyfourteen');
    }
}

WordPress Version: 3.7

/**
 * Defines templating related WordPress constants
 *
 * @since 3.0.0
 */
function wp_templating_constants()
{
    /**
     * Filesystem path to the current active template directory
     * @since 1.5.0
     */
    define('TEMPLATEPATH', get_template_directory());
    /**
     * Filesystem path to the current active template stylesheet directory
     * @since 2.1.0
     */
    define('STYLESHEETPATH', get_stylesheet_directory());
    /**
     * Slug of the default theme for this install.
     * Used as the default theme when installing new sites.
     * Will be used as the fallback if the current theme doesn't exist.
     * @since 3.0.0
     */
    if (!defined('WP_DEFAULT_THEME')) {
        define('WP_DEFAULT_THEME', 'twentythirteen');
    }
}