Title: Submit button
Last modified: January 5, 2019

---

# Submit button

 *  Resolved [carlager](https://wordpress.org/support/users/carlager/)
 * (@carlager)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/submit-button-62/)
 * I want to change the text on the button.
 * The following will change the first button
 * // Your code goes below
    // Change text button
 * function my_gwolle_gb_button( $button ) {
    // $button is a string $button = ‘
   <div id=”gwolle_gb_write_button”> <input type=”button” value=”Klik og Skriv &
   raquo” /> </div>’;
 *  return $button;
    } add_filter( ‘gwolle_gb_button’, ‘my_gwolle_gb_button’, 10,
   1 );
 * How do I change the text in the “submit” button ?
    -  This topic was modified 7 years, 4 months ago by [carlager](https://wordpress.org/support/users/carlager/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsubmit-button-62%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/submit-button-62/#post-11056937)
 * Hi, you can use a more general filter for that. Be aware that this does a replace
   for the whole form, so be carefull what text string you replace.
 *     ```
       function my_gwolle_gb_write( $form_html ) {
       	// $form_html is a string
       	$old = 'Old String';
       	$new = 'New String';
       	$form_html = str_replace( $old, $new, $form_html );
       	return $form_html;
       }
       add_filter( 'gwolle_gb_write', 'my_gwolle_gb_write', 10, 1 );
       ```
   
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/submit-button-62/#post-11056939)
 * It could look like this:
 *     ```
       function my_gwolle_gb_write( $form_html ) {
       	// $form_html is a string
       	$old = 'Submit';
       	$new = 'My New Submit';
       	$form_html = str_replace( $old, $new, $form_html );
       	return $form_html;
       }
       add_filter( 'gwolle_gb_write', 'my_gwolle_gb_write', 10, 1 );
       ```
   
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/submit-button-62/#post-11056941)
 * For Danish, you can also change the strings in GlotPress. Did you check that 
   out?
    [https://translate.wordpress.org/locale/da/default/wp-plugins/gwolle-gb](https://translate.wordpress.org/locale/da/default/wp-plugins/gwolle-gb)
 * If you want, I can request that you become translation editor for this plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Submit button’ is closed to new replies.

 * ![](https://ps.w.org/gwolle-gb/assets/icon-256x256.png?rev=1114688)
 * [Gwolle Guestbook](https://wordpress.org/plugins/gwolle-gb/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gwolle-gb/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gwolle-gb/)
 * [Active Topics](https://wordpress.org/support/plugin/gwolle-gb/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gwolle-gb/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gwolle-gb/reviews/)

## Tags

 * [danish](https://wordpress.org/support/topic-tag/danish/)
 * [submit button](https://wordpress.org/support/topic-tag/submit-button/)
 * [text string](https://wordpress.org/support/topic-tag/text-string/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/submit-button-62/#post-11056941)
 * Status: resolved