Disabel Account Email in Buddpress settings
-
I wish to disable users from changing their email address so only admin can do it.
one way to delete the lines from general.php however when updating this will cause issues and come back. i need a code to enter into my child theme functions.php<label for=”email”><?php _e( ‘Account Email’, ‘buddypress’ ); ?></label>
<input type=”email” name=”email” id=”email” value=”<?php echo bp_get_displayed_user_email(); ?>” class=”settings-input” <?php bp_form_field_attributes( ’email’ ); ?>/>This is the field i want to make read only/disable
thank you
- You must be logged in to reply to this topic.