Viewing 1 replies (of 1 total)
  • Plugin Author Miguel López

    (@atallos)

    Yes, you need to change the code in your theme. If you are using buddypress default theme, the file you need is located in:

    /wp-content/plugins/buddypress/bp-themes/bp-default/members/single/profile/edit.php

    Inside the while loop, you need to check if the field which is going to be displayed is the field you want to hide.

    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    <?php if (bp_get_the_profile_field_name() == 'leave') continue; ?>

    I think this should work. You can hide usign javascript also, but it’s better this way I think.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable user to edit fields’ is closed to new replies.