WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#47650 new enhancement

Add hooks to installed themes screen to allow control and customization

Reported by: pedromendonca Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3
Component: Administration Keywords: has-patch
Focuses: Cc:
PR Number:

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 5 months ago.
Patch to add hooks to themes.php screen

Download all attachments as: .zip

Change History (6)

@pedromendonca
5 months ago

Patch to add hooks to themes.php screen

#1 @pedromendonca
5 months ago

  • Type changed from feature request to enhancement

#2 @pedromendonca
5 months ago

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

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

  • Keywords has-patch added

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