WF_THEME_URL

Description

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

Parameters

string – Your full URL to the current directory on the server.
get_bloginfo('stylesheet_directory') – Default.

Example

<?php
//Example 1
//Set variable as path to custom script in my child theme folder
$path = WF_THEME_URL.'/js/my-script.js';
?>

Notes

If you want the server path to your child theme, use the constant WF_THEME_DIR.
Development note: Replaced depreciated WF_THEME constant in Wonderflux v1.0 Release Candidate 2.
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