Opened 11 years ago
Closed 11 years ago
#26503 closed enhancement (worksforme)
$found_themes filter in wp-includes/theme.php
Reported by: | nofearinc | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.7.1 |
Component: | Themes | Keywords: | has-patch dev-feedback needs-docs |
Focuses: | Cc: |
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.
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.