wp theme path <theme>

Gets the path to a theme or to the theme directory

Arguments

NameDescription
themeThe theme to get the path to. Path includes “style.css” file. If not set, will return the path to the themes directory

Options

NameDescription
--dirIf set, get the path to the closest parent directory, instead of the theme’s “style.css” file