Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#35547 closed enhancement (maybelater)

Customizer: filter "Save & Publish" button text

Reported by: djpaul's profile DJPaul Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Customize Keywords:
Focuses: Cc:

Description

In the Customizer, please can a filter be added for the "Save & Publish" text on the submit button?

As developers can use the Customizer for things other than theme customisation, sometimes this standard label doesn't fit the context and make sense.

Change History (1)

#1 @westonruter
9 years ago

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

In the Customize Snapshots plugin, the “Save & Publish” buttons are actually split up into two separate buttons, “Save” and “Publish”, where the former serves to create a draft and the latter actually makes them live. This plugin is a feature plugin to implement aspects of transactions (#30937). This being said, the “Save & Publish” buttons may get split up in Core after transactions land, and I'm wary to create a new filter for this one button right now.

In the mean time, I'd suggest handling this in JS, by overridding the wp.customize.l10n.save and wp.customize.l10n.saved properties. You would also need to change the button's original label as exported in PHP to be the same as you set wp.customize.l10n.saved to.

Note: See TracTickets for help on using tickets.