Make WordPress Core

Opened 8 years ago

Closed 6 months ago

Last modified 6 months ago

#40412 closed feature request (invalid)

Filter for theme actions to add extra buttons.

Reported by: mahesh901122's profile Mahesh901122 Owned by:
Milestone: Priority: normal
Severity: minor Version: 4.7.3
Component: Themes Keywords: 2nd-opinion
Focuses: administration Cc:

Description

In theme preview window we not have any filter to add extra buttons.

Not major. We'll add this with JS.


In file \wp-admin\themes.php

echo implode( ' ', $current_theme_actions );

Maybe like this:

echo implode( ' ', apply_filters( 'wp_current_theme_actions', $current_theme_actions ) );

Screenshot:

http://bsf.io/-dxku

Change History (3)

#1 @Mahesh901122
8 years ago

  • Keywords 2nd-opinion added
  • Severity changed from normal to minor

#2 @poena
6 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

I am going to close this because I am finding the feature request and use case unclear, and because there has been no follow-ups in 8 years.

#3 @Mahesh901122
6 months ago

Right. I'll be good to keep close the ticket.

Just want to share the requirement.

The requirement was, In the active theme, there are the action buttons. E.g.

https://maheshwaghmare.com/wp-content/uploads/2024/12/wordpress-active-theme-action-buttons.png

It is still difficult to add the action buttons like theme doc, or any other buttons.

E.g. https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/themes.php#L1259

Here, There is no such filter to add the buttons.

But, As it's a not most useful case and FSE themes are also going so closing will worth instead of spending time on it.

Note: See TracTickets for help on using tickets.