title: How to replace input type=”submit” to button on Contact Form 7?
body: <p>I have tried but it doesn't work.</p>
  
  <pre><code>remove_action( 'wpcf7_init', 'wpcf7_add_shortcode_submit', 20 );&lt;br&gt;
  add_action( 'wpcf7_init', 'wpcf7_add_shortcode_submit_button' );
  
  function wpcf7_add_shortcode_submit_button() {
      wpcf7_add_shortcode( 'submit', 'wpcf7_submit_button_shortcode_handler' );
  }
  
  function wpcf7_submit_button_shortcode_handler( $tag ) {
      $tag = new WPCF7_Shortcode( $tag );
  
      $class = wpcf7_form_controls_class( $tag-&gt;type );
  
      $atts = array();
  
      $atts['class'] = $tag-&gt;get_class_option( $class );
      $atts['id'] = $tag-&gt;get_id_option();
      $atts['tabindex'] = $tag-&gt;get_option( 'tabindex', 'int', true );
  
      $value = isset( $tag-&gt;values[0] ) ? $tag-&gt;values[0] : '';
      if ( empty( $value ) )
          $value = __( 'Send', 'contact-form-7' );
  
      $atts['type'] = 'submit';
  
      $atts = wpcf7_format`enter code here`_atts( $atts );
  
      $html = sprintf( '&lt;button %1$s&gt;%2$s&lt;/button&gt;', $atts, $value );
      enter code here
      return $html;
  }
  </code></pre>