Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Removing bp_nav menu item for specific users

@dr_scythe

Participant

After some further debugging the code is failing at this line:

$usertype = bp_profile_field_data( 'field=User Type&user_id=$userid' );

I’ve also tried the following and the correct data is still not being pulled from the database

$usertype = bp_get_profile_field_data( array(‘user_id’=>$userid,’field’=>'User Type' ));

In both cases I’ve also tried swapping the field= to the field id number which still doesn’t work.

Skip to toolbar