Support » Plugin: Constant Contact Forms » Please add a filter on the form’s submit button text

  • Resolved Corey Salzano

    (@salzano)


    I would love to change the button text. Please consider a change like this on line 682 of class-display.php:

    	/**
    	 * Helper method for submit button
    	 *
    	 * @since  1.0.0
    	 * @return string html markup
    	 */
    	public function submit() {
    		return $this->field( array(
    			'type'   => 'submit',
    			'name'   => 'ctct-submitted',
    			'map_to' => 'ctct-submitted',
    			'value'  => __( 'Send', 'constant-contact-forms' ),
    		) );
    	}

    to something like…

    'value' => apply_filters( 'ctct_submit_text', __( 'Send', 'constant-contact-forms' ) ),

    I am not sure about whether the translation should happen before or after, but I am sure I want to change the button text. Thanks for reading.

    • This topic was modified 1 year, 4 months ago by  Corey Salzano.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Already a noted feature request that we’re looking into. Thanks for re-affirming the request.

    For that last part, the translation would happen first, and then that value would be passed into the filter. If you were to try string matching for conditional amending, you’d need to take into account any translated versions that may be coming in.

    Plugin Author Constant Contact

    (@constantcontact)

    Closing as a known request that’s being addressed in a near future release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please add a filter on the form’s submit button text’ is closed to new replies.