WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#20596 new feature request

Adding more actions to a widget

Reported by: webord Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Widgets Keywords: 2nd-opinion
Focuses: Cc:

Description

On the Widget UI, there is a "Close" button, aside with the "Delete" button, and I that developers should have a way to add more of those.

For exemple, I would see as a good use case when you have a way of previewing the widget.

Because right now the only way is by JS which is kinda of lame.

Thanks,

Change History (3)

comment:1 scribu2 years ago

  • Keywords needs-patch removed

But wouldn't you need a JS handler for the "Preview" button anyway?

comment:2 webord2 years ago

Yes, but why adding the handler with JS if you can have the server generate the HTML for you in this case. Might be a good addition to the Widgets API having these actions built in.

But I see your point.

Note: See TracTickets for help on using tickets.