type ); $atts = array(); $atts['class'] = $tag->get_class_option( $class ); $atts['id'] = $tag->get_id_option(); $atts['tabindex'] = $tag->get_option( 'tabindex', 'int', true ); $value = isset( $tag->values[0] ) ? $tag->values[0] : ''; if ( empty( $value ) ) $value = __( 'Send', 'contact-form-7' ); $atts['type'] = 'submit'; $atts['value'] = $value; $atts = wpcf7_format_atts( $atts ); $html = sprintf( '', $atts ); return $html; } /* Tag generator */ add_action( 'admin_init', 'wpcf7_add_tag_generator_submit', 55 ); function wpcf7_add_tag_generator_submit() { if ( ! function_exists( 'wpcf7_add_tag_generator' ) ) return; wpcf7_add_tag_generator( 'submit', __( 'Submit button', 'contact-form-7' ), 'wpcf7-tg-pane-submit', 'wpcf7_tg_pane_submit', array( 'nameless' => 1 ) ); } function wpcf7_tg_pane_submit( $contact_form ) { ?>