$theme_path = themePath(); echo $theme_path; // Output: /path/to/current/theme
$theme_name = 'my-theme'; $theme_path = themePath($theme_name); echo $theme_path; // Output: /path/to/my-themeThis function is part of the WordPress framework, and can be found in the WordPress core package library.