1. Home
  2. Knowledge Base
  3. WooCommerce Members Only
  4. Registration
  5. Change the label for the ‘Role’ field in the registration form
  1. Home
  2. Knowledge Base
  3. WooCommerce Members Only
  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?

Related Articles