Opened 20 years ago
Closed 20 years ago
#863 closed enhancement (fixed)
Allow theme location to be changed through filters.
Reported by: | ryan | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.5 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
Add filters so that the theme root, template directory, stylesheet directory, and associated URIs can be changed via plugins.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Here's the list of filters:
theme_root - The base theme directory. Default:
ABSPATH/wp-content/themes
theme_root_uri - The base theme uri. Default: siteurl/wp-content/themes
stylesheet_directory - The directory containing the active stylesheet.
Default: theme_root/stylesheet-theme-name
stylesheet_directory_uri - The uri of the directory containing the
active stylesheet. Default: theme_root_uri/stylesheet-theme-name
stylesheet_uri - The uri of the active stylesheet. Default:
stylesheet_directory_uri/style.css
template_directory - The directory containing the active template.
Default: theme_root/template-theme-name
template_directory_uri - The uri of the directory containing the active
template. Default: theme_root_uri/template-theme-name
To relocate from wp-contet/themes/ to /themes/, hook into the
theme_root and theme_root_uri filters. Changes made to those will be
picked up by the stylesheets and templates.