[wp-hackers] Constant for Theme File Path
Chip Bennett
chip at chipbennett.net
Fri Jan 7 19:35:49 UTC 2011
Now why couldn't I find
that<http://codex.wordpress.org/Function_Reference/get_theme_root>
?
Exactly what I need.
Thanks (to you and Mike)!
Chip
On Fri, Jan 7, 2011 at 1:34 PM, Austin Matzko <austin at ilfilosofo.com> wrote:
> On Fri, Jan 7, 2011 at 1:17 PM, Chip Bennett <chip at chipbennett.net> wrote:
> > I need to check for the existence of the default Theme (i.e. TwentyTen),
> > which is easy enough: use file_exists() to find twentyten/style.css.
> >
> > WordPress has a defined constant, WP_PLUGIN_DIR, for retrieving the file
> > path (not URL) of the directory in which Plugins are installed. Does a
> > similar constant (or other means) exist for retrieving the file path (not
> > URL) of the directory in which Themes are installed?
>
> How about get_theme_root() ?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list