Title: [Plugin: WP-Members] Customize submit button
Last modified: August 20, 2016

---

# [Plugin: WP-Members] Customize submit button

 *  Resolved [webbrewers](https://wordpress.org/support/users/webbrewers/)
 * (@webbrewers)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/)
 * Searched high and low but can’t seem to find a way to change out the button or
   its wording. Is it possible?
 * [http://wordpress.org/extend/plugins/wp-members/](http://wordpress.org/extend/plugins/wp-members/)

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

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2597806)
 * The plugin does have some pluggable functions, of which the registration form
   is one. However, to do that, you do need to make sure you watch that your plugged
   function remains compatible with future versions, which to me seems like a lot
   of work to change one button.
 * The registration form (I assume that’s what we are talking about, since that 
   is the only button that says “submit”) is in wpmem_inc_registration_NEW in wp-
   members-dialogs.php. (Note: the legacy forms (_OLD) are scheduled to be deprecated
   in an upcoming version, so this function may be reverted to wpmem_inc_registration)
 * Info on pluggable functions in WP-Members:
    [http://butlerblog.com/2011/11/29/customizing-wp-members-with-pluggable-functions/](http://butlerblog.com/2011/11/29/customizing-wp-members-with-pluggable-functions/)
 *  Thread Starter [webbrewers](https://wordpress.org/support/users/webbrewers/)
 * (@webbrewers)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2597809)
 * Chad,
    Brilliant – thank you. I hid the text with css but this a better option.
   The user wanted the button changed…….
 *  [Mr Tibbs](https://wordpress.org/support/users/mtibesar/)
 * (@mtibesar)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2597988)
 * Perhaps another option would be to change the wp-members.css file. I changed 
   the Submit; Login and Clear Form buttons for a more modern look:
 * font-family:Verdana,Geneva,Arial,sans-serif;
    background: #4D7570; font-size:
   12px; color: #FFFFFF !important; margin-left: 0px; border-width: 1px; border-
   style: solid; border-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.25) rgba(0, 0,
   0, 0.35); border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 1px rgba(0, 0, 
   0, 0.25); text-decoration: none; text-transform:uppercase; margin-bottom: 10px;
   padding: 5px; cursor: pointer; display: inline-block; padding: 5px 10px 6px; 
   position: relative;
 * Not sure if this helps – just my 2 cents 🙂
 *  Thread Starter [webbrewers](https://wordpress.org/support/users/webbrewers/)
 * (@webbrewers)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2597989)
 * Trouble is I needed to change the value/text so I did initially use css to hide
   it and then add a background image. But I think it’s better to be able to change
   the actual button.
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2597990)
 * With the [release of the 2.7.4 version](http://butlerblog.com/2012/04/03/wp-members-2-7-4-release-announcement/),
   you could use the filter for the form. If we are talking about the registration
   form, the filter is wpmem_register_form and the generated html of the form is
   passed through the filter. You could use php’s str_replace to filter the submit
   button to read ‘register’:
 *     ```
       add_filter( 'wpmem_register_form', 'my_submit_button_filter' );
       function my_submit_button_filter( $string ) {
   
       	// the html of the form is the parameter $string
   
       	// use str_replace like:
       	// $new_string = str_replace( $needle, $replacement, $haystack );
   
       	$string  = str_replace( 'Submit', 'Register', $string );
   
       	return $string;
   
       }
       ```
   
 *  [Mr Tibbs](https://wordpress.org/support/users/mtibesar/)
 * (@mtibesar)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2597991)
 * I will add this filter to my child theme’s functions.php file and test it this
   evening.
 * Should be a beneficial customization to the Registration form’s Submit button.
 * Thank you.
 *  [Mr Tibbs](https://wordpress.org/support/users/mtibesar/)
 * (@mtibesar)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2597992)
 * The worked great.
 * Now the button text is more appropriate and the button itself looks modern.
 * Thank you for all the help with this Chad and webbrewers!
 *  [Win7Mac](https://wordpress.org/support/users/win7mac/)
 * (@win7mac)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2598015)
 * Hi Chad and fellas!
    Great plugin this is, thanks for sharing I first have to
   say. Been fumbling around with it for almost a day now, but haven’t tried the
   above yet, as I didn’t understand it exactly. I’m no expert, so sorry for stupid
   qustions. I don’t know about filters and messing with the CSS or theme stuff,
   but I can edit simple code in html or php.
 * So is it possible to change the “LOGIN” “CLEAR FORM” and “SUBMIT” buttons within
   the plugin?
 * If not,
    – I would suggest this feature for the next update. Just think of different
   languages, wich is my actual reason for wanting this adjusted. (I’m on german
   version and the buttons actually are not translated) – how exactly can I get 
   this going with simplest code possible?
 * Thanks again.
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2598017)
 * Thanks for the comments [@win7mac](https://wordpress.org/support/users/win7mac/)–
   actually, the buttons can be translated. I believe all of them are gettext strings.
   If your buttons are not translating, it could be that you are working from an
   out-of-date .pot file. The most recent file included in the download does have
   them (see: [http://plugins.svn.wordpress.org/wp-members/trunk/lang/wp-members.pot](http://plugins.svn.wordpress.org/wp-members/trunk/lang/wp-members.pot)).
 * So if translation is your need, then that’s the simplest way.
 * As an aside, you mentioned that you can edit simple code in php. If that’s the
   case, I would recommend you learn the power of the filter hook in WordPress. 
   Action and filter hooks are all accessed via php code. The WP-Members plugin 
   provides many hooks for customization following the WP standard for hooks. If
   you learn how to use these, your ability to customize both WP-Members and WP 
   itself is immense.
 *  [Shashank Shekhar](https://wordpress.org/support/users/shashankitsoft/)
 * (@shashankitsoft)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2598035)
 * I am using wp-members 2.8.1 with wp 3.5.
    I also want to customize the form buttons
   and last required label. I tried with above sample code for custom filter, it
   worked for changing button text.
 * But to customize the html to a larger extent, its not working.
    ……………
 * Edited the post, created a separate topic here (as here it was marked resolved)..
 * [http://wordpress.org/support/topic/customize-register-form-buttons-html-filter-not-working](http://wordpress.org/support/topic/customize-register-form-buttons-html-filter-not-working)
 * ……………
    Go through the topic there above and Please help.
 * Thanks.

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

The topic ‘[Plugin: WP-Members] Customize submit button’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [Shashank Shekhar](https://wordpress.org/support/users/shashankitsoft/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-members-customize-submit-button/#post-2598035)
 * Status: resolved