Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#42137 closed defect (bug) (maybelater)

Adding filter to customize save button.

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

Description

Let's add a filter to $save_text in <?php submit_button( $save_text, 'primary save', 'save', false ); ?> or <?php $save_text = $wp_customize->is_theme_active() ? __( 'Publish' ) : __( 'Activate &amp; Publish' ); ?>

Not everyone like myself utilizes the customizer to customize themes.

cc westonruter

Change History (4)

#1 @westonruter
6 years ago

@Collizo4sky What would you want to filter it to be?

#2 @Collizo4sky
6 years ago

I am the developer of MailOptin (https://wordpress.org/plugins/mailoptin/) plugin which uses the customizer to build optin forms. User's have grown accustomed to "Save Changes".

Anyways I was able to rename it back to "Save Changes" using gettext filter.

Close the ticket if adding a filter doesn't make much sense.

#3 follow-up: @westonruter
6 years ago

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

#4 in reply to: ↑ 3 @Collizo4sky
6 years ago

Awesome.

Note: See TracTickets for help on using tickets.