Getting Style Sheet Path

Posted in Snippets on July 13th, 2010

The WordPress constant STYLESHEETPATH returns the file path to the style sheet. Example usage below:

// if 'custom/custom.php' exists, lets include our custom functions
if(file_exists(STYLESHEETPATH . '/custom/custom.php')) require_once('custom/custom.php');