WF_THEME_DIR

Description

Defines the full server path to the current child theme directory without a trailing /.

Parameters

string – Your full path to the current directory on the server.
STYLESHEETPATH – Default.

Example

<?php
//Example 1
// Define path to PHP include
$path = WF_THEME_DIR.'/scrips/my-script.php';
?>

Notes

If you want the URL to your child theme, use the constant WF_THEME_URL.
Development note: Can be controlled from a child theme by defining constant in child theme functions file – good for CDN hosting of theme files/assets.

This constant documentation was last modified on: March 12, 2012 by Jonny