Opened 6 years ago
Last modified 6 years ago
#47650 new enhancement
Add hooks to installed themes screen to allow control and customization
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.3 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
Add the following hooks to themes screen to allow customization.
- Add filter
current_theme_actions
to allow manipulation of the current theme action buttons array. - Add action hook
after_active_theme_actions
to allow customized buttons after active themes action buttons. - Add action hook
after_inactive_theme_actions
to allow customized buttons after inactive themes action buttons. - Add action hook
after_theme_actions
to allow customization after all themes action buttons. - Add action hook
after-theme-info
to allow adding customized theme info.
Attachments (1)
Change History (6)
#2
@
6 years ago
- Keywords has-patch 2nd-opinion dev-feedback added
- Version changed from trunk to 5.2.2
#3
@
6 years ago
- Component changed from Themes to Administration
- Keywords has-patch 2nd-opinion dev-feedback removed
- Version changed from 5.2.2 to trunk
#5
@
6 years ago
I think there should be some identifying context passed in the actions and filter.
Especially true for the after_inactive_theme_actions
action as one can easily determine the currently active theme by means of wp_get_theme()
but it's impossible to know which inactive theme we're dealing with.
I'd also love to see some actions/filters in the themes' grid, as it's now impossible to add/modify stuff there.
For example, I want to show something to distinguish themes that are sym-linked, but it's currently impossible to implement without any hooks.
Note: See
TracTickets for help on using
tickets.
Patch to add hooks to themes.php screen