Make WordPress Core

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: pedromendonca's profile pedromendonca 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)

47650.diff (1.9 KB) - added by pedromendonca 6 years ago.
Patch to add hooks to themes.php screen

Download all attachments as: .zip

Change History (6)

@pedromendonca
6 years ago

Patch to add hooks to themes.php screen

#1 @pedromendonca
6 years ago

  • Type changed from feature request to enhancement

#2 @pedromendonca
6 years ago

  • Keywords has-patch 2nd-opinion dev-feedback added
  • Version changed from trunk to 5.2.2

#3 @pedromendonca
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

#4 @pedromendonca
6 years ago

  • Keywords has-patch added

#5 @anastis
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.