1. Home
  2. Knowledge Base
  3. WooCommerce Members Only
  4. Change the label for the ‘Role’ field in the registration form
  1. Home
  2. Knowledge Base
  3. Registration
  4. Change the label for the ‘Role’ field in the registration form

Change the label for the ‘Role’ field in the registration form

You can replace the label ‘Role’ in the registration form using this snippet:

<?php
/**
* Change the label for the 'Role' field in the registration form
*/
function prefix_registration_form_role_label( $label ) {
return 'Your label here';
}
add_filter( 'wcmo_registration_form_role_label', 'prefix_registration_form_role_label' );

Here’s how to add a snippet.

Was this article helpful?

Need More Support?

If you can't find the answer that you're looking for, then please use the link below to raise a support ticket.
Contact Support

Related Articles