Opened 13 years ago
Closed 13 years ago
#26503 closed enhancement (worksforme)
$found_themes filter in wp-includes/theme.php
| Reported by: | nofearinc | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Themes | Version: | 3.7.1 |
| Severity: | normal | Keywords: | has-patch dev-feedback needs-docs |
| Cc: | Focuses: |
Description (last modified by )
Occasionally different plugins could hide or reorder the themes listed in Appearance -> Themes. For example, the alphabetical order could be avoided for themes with a higher priority (to give some exposure to new themes) or hide some themes based on different options for the site.
Can we add a filter for $found_themes to allow for more flexibility on the Themes screen?
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The sort here is merely for caching and data consistency reasons. search_theme_directories() is very low level.
A better place for the hook is wp_prepare_themes_for_js(), which gained a hook in 3.8.