Support » Plugin: Grunion Contact Form » [Plugin: Grunion Contact Form] Change text of submit button

Viewing 9 replies - 1 through 9 (of 9 total)
  • rjleaman


    In your Admin, go to Plugins > Editor and select Grunion Contact Form from dropdown in upper right. Look for text “Submit »” in the plugin files and change it to what you’d prefer the button to say.



    Chaning the text in the plugin’s soucre code is a bad practice, since upon plugin’s version update, this change will no longer be there.

    Till Krüss


    Exactly, I’m looking for a proper update-proof solution ; )

    sorry for the ignorance,
    (I’m a newbie)

    I’ve searched the docs and can’t figure out what to put in my functions.php file after making the change to grunion-contact-form.php

    I’ve tried this:-

    define( 'contact_form_submitbutton', apply_filters( 'contact_form_submitbutton', 'Send' ) );

    and this:-

    apply_filters('contact_form_submitbutton', 'Send');

    and also with this:-

    remove_filter( 'contact_form_submitbutton', 'contact_form_submitbutton');

    would you be able to advise on what to use if possible please?

    Thanks in advance 🙂

    It’s currently not possible not change the submit button text without editing directly /plugins/grunion-contact-form/grunion-contact-form.php file.

    hi, thanks, I’ve changed the php file as per the instructions here:-

    but not sure what to do next?

    thanks in advance 🙂

    Add your filter: add_filter('contact_form_submitbutton', function($str) { return 'NEW SUBMIT TEXT'; });

    thanks it works, I wouldn’t have figured that out!

    the only other change was to choose PHP=>DEV in my 1and1 hosting control panel which changed the PHP version from 5.2.17 to 6

    thanks again!

    sorry to be a pain, for pre PHP5.3 users how can we adapt this add_filter?

    thanks in advance 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Grunion Contact Form] Change text of submit button’ is closed to new replies.